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

feat: Optional and hint stories #1669

Merged
merged 4 commits into from
Oct 18, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Update storybook/src/components/Label/Label.docs.mdx
Co-authored-by: Vincent Smedinga <v.smedinga@amsterdam.nl>
  • Loading branch information
dlnr and VincentSmedinga authored Oct 17, 2024
commit a08ef6dec5319175af501583fe5542ec3c5d53c2
5 changes: 4 additions & 1 deletion storybook/src/components/Label/Label.docs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ Use the `optional` prop to indicate that the user doesn’t need to fill in the

### With hint

Use the `hint` prop to either customize the text for the optional property or to privide another type of remark.
Use the `hint` prop to either customize the text for the optional property or provide another type of remark.

Note: ensure the hint meets [language level B1](https://www.amsterdam.nl/schrijfwijzer/heldere-taal-basis-onze-huisstijl/).
For the same reason, the default hint text in Dutch is ‘niet verplicht’, not ‘optioneel’.

<Canvas of={LabelStories.WithHint} />
Loading