NOCTA UI

Toggle

Accessible toggle button built on top of Ariakit Checkbox, supporting variants, sizes, and icon composition.

Installation

Install the Toggle component using the nocta-ui CLI:

npx @nocta-ui/cli add toggle

Import the component:

import { Toggle } from '@/components/ui/toggle';

Examples

Default Toggle

Click to toggle notifications

Sizes

Icon Toggles

API Reference

Prop

Type