/
githubmirror
/
ui
Обзор
Документация
Войти
/
githubmirror
/
ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
apps/v4/examples/base/switch-description.tsx
23 строки
606 B
shadcn
fix: refactor styles (#10190)
26 мар 2026, 13:36
Не верифицирован
26 мар 2026, 13:36
7d718dd
Код
Авторство
О чём код?
import { Field, FieldContent, FieldDescription, FieldLabel, } from "@/styles/base-nova/ui/field" import { Switch } from "@/styles/base-nova/ui/switch" export function SwitchDescription() { return ( <Field orientation="horizontal" className="max-w-sm"> <FieldContent> <FieldLabel htmlFor="switch-focus-mode"> Share across devices </FieldLabel> <FieldDescription> Focus is shared across devices, and turns off when you leave the app. </FieldDescription> </FieldContent> <Switch id="switch-focus-mode" /> </Field> ) }