Switch

A control that allows the user to toggle between checked and not checked.

<Switch />

Installation

pnpm add @notion-kit/shadcn

Options


Size

Use the size prop to control the size of the switch. The default size is "md".

<Switch size="sm"/>
<Switch size="md"/>
 

API Reference

Switch

PropTypeDefaultDescription
size"sm" | "md""md"The size of the switch.

On this page