一个双状态按钮,可以设置为开启或关闭。
pnpm dlx shadcn@latest add toggle
import { Toggle } from "@/components/ui/toggle"
<Toggle>Toggle</Toggle>
本页内容