Checkbox: support for helper text and required state #5190
Labels
acceptance criteria
used for the acceptance criteria checklist
DS
Design System feature (e.g. component)
v24.4
Description
Support for helper-text in Checkbox (including individual checkboxes in a Checkbox Group), and support for required state (incl. indicator) and error message in individual Checkboxes.
Acceptance criteria
helper
slot in Checkboxaria-describedby
in<input>
pointing to contents ofhelper
slothelper-text
/helperText
invaadin-checkbox
/Checkbox
HasHelper
interfaceCheckboxGroup
(API TBD)setRequired
/required
API for setting required staterequired-indicator
part nameerror-message
slot in Checkboxaria-describedby
in<input>
pointing to contents oferror-message
sloterror-message
/errorMessage
/setErrorMessage
WC / React / Flow APIsHasValidation
support in FlowUI design
Note: Helper and error slots could be placed in additional css grid rows below the label, with
padding-left: var(--lumo-space-xs)
on both to align horizontally with labelpadding-bottom: 0.4em;
on both to provide appropriate spacing between them and below the last one (needed to have enough space between the helper/error of the preceding item and the label of the next item in a group)General criteria
Documentation: https://vaadin.com/docs/next/components/checkbox#required, https://vaadin.com/docs/next/components/checkbox#basic-features
How to test?
Security
The text was updated successfully, but these errors were encountered: