Open ab2583 opened 3 months ago
We should be able to hide the label on checkboxes, so that users of the UI kit aren't forced to only have text next to their checkboxes.
There should be a hideLabel prop which when true will stop the label from rendering
This will be useful to developers as it will allow them to out any content they want beside a checkbox.
If relevant, describe in full detail the different interactions and edge cases that the component or patterns needs to fulfil.
Given I specifynthe hideLabel prop When I render a checkbox Then The text label should not appear
If there's a Figma design file (or other mock-up), include it here.
This is possible with other ICDS components, so will bring checxkboxes more in line with those
ab2583
So the hide label is on the UI kit already, but there is maybe some work to include a slot to include something like icons in place
Design need to make this work in Figma
Summary
We should be able to hide the label on checkboxes, so that users of the UI kit aren't forced to only have text next to their checkboxes.
๐ฌ Description
There should be a hideLabel prop which when true will stop the label from rendering
๐ฐ Use value
This will be useful to developers as it will allow them to out any content they want beside a checkbox.
๐ Acceptance Criteria
If relevant, describe in full detail the different interactions and edge cases that the component or patterns needs to fulfil.
Given I specifynthe hideLabel prop When I render a checkbox Then The text label should not appear
โ Designs
If there's a Figma design file (or other mock-up), include it here.
โฏ๐งพ Guidance
This is possible with other ICDS components, so will bring checxkboxes more in line with those