/
githubmirror
/
vuetify
Обзор
Документация
Войти
/
githubmirror
/
vuetify
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
packages/api-generator/src/locale/en/VSwitch.json
19 строк
2 KB
J-Sek
feat(VSwitch): add `size` prop (#22882)
31 май 2026, 02:50
Не верифицирован
31 май 2026, 02:50
d0fb972
Код
Авторство
О чём код?
{ "description": "Provides users the ability to choose between two distinct values. Typically used as an on/off switch. Supports indeterminate and loading states.", "props": { "flat": "Display component without elevation. Default elevation for thumb is 4dp, `flat` resets it.", "indeterminate": "Sets an indeterminate state for the switch.", "inset": "Controls the track and thumb styling\n- **tonal** (or `true`) enlarges the track to encompass the thumb\n- **material** applies the Material Design 3 treatment: an outlined track that fills when on and a thumb that morphs between states\n- **square** is the **material** variant with less round corners.\n\nNon-boolean values were introduced in v4.1.0.", "loading": "Displays circular progress bar. Can either be a String which specifies which color is applied to the progress bar (any material color or theme color - primary, secondary, success, info, warning, error) or a Boolean which uses the component color (set by color prop - if it's supported by the component) or the primary color.", "multiple": "Changes expected model to an array.", "size": "Scales the track and thumb. Accepts the predefined sizes **x-small**, **small**, **default**, **large**, and **x-large**, or a numeric value for a custom scale." }, "events": { "update:indeterminate": "Event that is emitted when the component's indeterminate state changes." }, "slots": { "thumb": "Slot for custom thumb content.", "track-true": "Slot for custom track content when value is true.", "track-false": "Slot for custom track content when value is false." } }