ui
ui copied to clipboard
Use required prop for label asterisk
Show asterisk in label when required prop is true.
๐ Linked issue
โ Type of change
- [ ] ๐ Documentation (updates to the documentation, readme or JSdoc annotations)
- [ ] ๐ Bug fix (a non-breaking change that fixes an issue)
- [x] ๐ Enhancement (improving an existing functionality like performance)
- [ ] โจ New feature (a non-breaking change that adds functionality)
- [ ] ๐งน Chore (updates to the build process or auxiliary tools and libraries)
- [ ] โ ๏ธ Breaking change (fix or feature that would cause existing functionality to change)
Do we need to publish a new version of a package?
- [ ] Add a changeset
pnpm changesetand select what semver changes your PR is adding- commit and push the generated changeset file
๐ Checklist
- [ ] I have linked an issue or discussion.
- [ ] I have updated the documentation accordingly.
๐ Description
@jpntex
Thank you, sorry for the delay. Awesome idea, will adapt this to a global configuration so others can opt out of the *
Thanks @madmax124, went for the styling option, so anyone can override with custom theming: https://github.com/indielayer/ui/commit/c17ac2d96e4bca0f1215b80b3badd73fdec04edc