文档
开关

开关

一个允许用户在选中和未选中之间切换的控件。

安装

pnpm dlx shadcn@latest add switch

用法

import { Switch } from "@/components/ui/switch"
<Switch />

示例

表单

邮件通知

接收关于新产品、功能等的邮件。

接收关于您账户安全的邮件。