Switch

Switch primitive wrapper

import { Switch } from '@/components/ui/switch'

...

Installation

npx @fictjs/shadcn@latest add switch

Usage

Examples

Description

Focus is shared across devices, and turns off when you leave the app.

import { Switch } from '@/components/ui/switch'

...

Choice Card

Focus is shared across devices, and turns off when you leave the app.

Receive notifications when focus mode is enabled or disabled.

import { Switch } from '@/components/ui/switch'

...

Disabled

import { Switch } from '@/components/ui/switch'

...

Invalid

You must accept the terms and conditions to continue.

import { Switch } from '@/components/ui/switch'

...

Sizes

import { Switch } from '@/components/ui/switch'

...

Rtl

يتم مشاركة التركيز عبر الأجهزة، ويتم إيقاف تشغيله عند مغادرة التطبيق.

import { Switch } from '@/components/ui/switch'

...