Toggle

A two-state button that can be either on or off.

Installation

npx @kosori/cli add components toggle

Usage

import { Toggle } from '~/components/ui/toggle';
<Toggle>Toggle</Toggle>

Reference

PropTypeDefault
size
enum
medium
variant
enum
ghost
icon
boolean
false

Examples

Variants

Sizes

With Text

Disabled

On this page