Settings
Settings card: switches in titled groups, each with a hint, disabled where an option is not available, and reset and save actions.
Parts
| Part | File | Does |
|---|---|---|
| Settings | Settings.vue | Lets the shopper turn grouped options on or off, then save or reset the changes. |
Install
Built from
API reference
Lets the shopper turn grouped options on or off, then save or reset the changes.
Props 8
| Prop | Type | Default | |
|---|---|---|---|
| groups* | SettingsGroup[] | — | |
| |||
| title | string | 'Settings' | |
| |||
| description | string | — | |
| |||
| resetLabel | string | 'Reset' | |
| |||
| saveLabel | string | 'Save changes' | |
| |||
| surface | 'raised' | 'bare' | 'raised' | |
| |||
| class | ClassValue | — | |
| |||
| modelValue | Record<string, boolean> | {} | |
| |||
Events 2
| Event | Payload | |
|---|---|---|
| update:modelValue | value: Record<string, boolean> | |
| ||
| save | enabled: Record<string, boolean> | |
| ||
Data attributes 1
| Data attribute | Values | |
|---|---|---|
| data-surface | 'raised' | 'bare' | |
| ||