Switch

A control that allows the user to toggle between on and off.

Installation

npx ghost-ui-native add switch

Usage

import { Switch } from '@/components/ui/switch';
const [on, setOn] = useState(false)

<Switch checked={on} onCheckedChange={setOn} />