design-system
design-system copied to clipboard
Input components: Add boolean for Required fields
Is your feature request related to a problem? Please describe.
I have seen many ways of showing an textfield if it is required or not. It should only be one
Describe the solution you'd like
A boolean where you can set "required = true" in the react components. For instance for <Textfield />
Describe alternatives you've considered
You can do it yourself with Meta, but things look different on different places depending what they do
Good suggestion!
This is something that we would have to look at together with design in Figma component as well :) Not sure what the given practice is for this today, but it feels like a given feature :)
We’ve added required in the next iteration of the TextField component in Figma 😊