Skip to main content

Choices

<sc-choices></sc-choices>

This component let users create choices container.

Gold Plan$9.99, then $49.99 per monthSilver Plan$39.99 per monthBronze Plan$9.99 per month

Component Codex

Properties

PropertyDescriptionTypeDefault
autoWidthboolean
columnsNumber of columns on desktopnumber1
errorMessageValidation error message.string''
helpThe input's help text.string''
hideLabelHides the fieldset and legend that surrounds the group. The label will still be read by screen readers.booleanfalse
labelThe group label. Required for proper accessibility. Alternatively, you can use the label slot.string''
requiredRequiredbooleanfalse
showLabelShould we show the labelbooleantrue
sizeInput size"large" | "medium" | "small"'medium'

Methods

triggerFocus() => Promise<void>

Shadow Parts

PartDescription
baseThe elements base wrapper.
choicesThe choices wrapper.
form-controlThe form control wrapper.
help-textHelp text that describes how to use the input.
labelThe input label.