Docs
切换

切换

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

安装

¥Installation

pnpm dlx shadcn@latest add switch

用法

¥Usage

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

示例

¥Examples

表单

¥Form

Email Notifications

Receive emails about new products, features, and more.

Receive emails about your account security.