Forms
Choice
Individual choice option for use inside ChoiceList. Wraps the Polaris <s-choice> web component.
Usage
<template>
<ShChoiceList v-model="selected" label="Pick one">
<ShChoice value="option1">Option 1</ShChoice>
<ShChoice value="option2">Option 2</ShChoice>
</ShChoiceList>
</template>
Props
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | — | Choice value |
selected | boolean | — | Whether the choice is selected |
defaultSelected | boolean | — | Default selected (uncontrolled) |
disabled | boolean | — | Disables the choice |
accessibilityLabel | string | — | Accessible label |
Slots
| Slot | Description |
|---|---|
default | Choice label |
Polaris Element
Renders as <s-choice>. See Polaris Choice docs.