Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(FormGroup): Use correct required prop in FormGroup storybook examples #2927

Merged
merged 2 commits into from
Aug 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ It is best to provide `htmlFor` to both the FormGroup + inner form element to ma
<Story name="FormGroupRequired">
{() => (
<FormGroup
showRequired
required
label="I am required!!"
description="You can tell by the asterisk."
htmlFor="required1"
Expand All @@ -68,7 +68,7 @@ It is best to provide `htmlFor` to both the FormGroup + inner form element to ma
<Story name="FormGroupError">
{() => (
<FormGroup
showRequired
required
label="I am also required!!"
description="You can tell by the asterisk."
error="You messed up dude."
Expand All @@ -80,11 +80,7 @@ It is best to provide `htmlFor` to both the FormGroup + inner form element to ma
</Story>
<Story name="FormGroupValidated">
{() => (
<FormGroup
showRequired
label="I am also required!!"
htmlFor="required-valid"
>
<FormGroup required label="I am also required!!" htmlFor="required-valid">
<Input defaultValue="Good job!" htmlFor="required-valid" valid />
</FormGroup>
)}
Expand Down
Loading