Skip to content

Commit

Permalink
add textField and textArea stories
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardoperra committed Nov 19, 2023
1 parent 2c63ba1 commit f90c538
Show file tree
Hide file tree
Showing 14 changed files with 438 additions and 1,028 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { PolymorphicProps } from "@kobalte/core";
export function createFieldMessageProps<TComponent extends ValidComponent = "div">(
props: PolymorphicProps<TComponent>,
) {
const [local] = splitProps(props, []);
const [local] = splitProps(props, ["children"]);
return mergeProps(local, {
get class() {
return mergeClasses(props.class, description);
Expand Down
1 change: 1 addition & 0 deletions packages/kit/src/components/TextField/TextFieldMessage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { createFieldMessageProps } from "../Field/FieldMessage/createFieldMessag

type TextFieldLabelProps = Parameters<(typeof KTextField)["Description"]>[0] & {};

// TODO: this is bad
export function TextFieldMessage(props: TextFieldLabelProps) {
const fieldLabelProps = createFieldMessageProps(props);

Expand Down
176 changes: 0 additions & 176 deletions packages/playground-next/src/routes/button.tsx

This file was deleted.

44 changes: 0 additions & 44 deletions packages/playground-next/src/routes/checkbox.tsx

This file was deleted.

118 changes: 0 additions & 118 deletions packages/playground-next/src/routes/dialog.tsx

This file was deleted.

Loading

0 comments on commit f90c538

Please sign in to comment.