-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(input-field): Initial check-in for the
InputField
component pa…
…ckage
- Loading branch information
1 parent
92e87c7
commit 0f7d8a5
Showing
16 changed files
with
2,150 additions
and
7,132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,8 @@ const meta: Meta<typeof FormField> = { | |
component: FormField, | ||
tags: ["autodocs"], | ||
render: ({ ...rest }: any) => ( | ||
<FormProvider name="formName" defaultValues={{ inputName: "" }}> | ||
<FormField name="inputName" {...rest}> | ||
<FormProvider name="formName" defaultValues={{ formFieldName: "" }}> | ||
<FormField name="formFieldName" {...rest}> | ||
<FormField.Label>Label Text</FormField.Label> | ||
<Input placeholder="[email protected]" {...rest} /> | ||
<FormField.Details> | ||
|
Oops, something went wrong.