design-system icon indicating copy to clipboard operation
design-system copied to clipboard

Input components: Add boolean for Required fields

Open HansKristianVikOlsen opened this issue 2 years ago • 2 comments

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

HansKristianVikOlsen avatar Aug 24 '22 12:08 HansKristianVikOlsen

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 :)

mimarz avatar Aug 24 '22 13:08 mimarz

We’ve added required in the next iteration of the TextField component in Figma 😊

vnys avatar Aug 24 '22 13:08 vnys