sigilUI

Toggle

Switch a single action between pressed and unpressed states.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { Toggle } from "@sigil-ui/components";

Usage

<Toggle>Toggle</Toggle>

Props

PropTypeDefaultDescription
variant"default" | "outline"defaultVisual variant.
size"sm" | "md" | "lg"mdToggle size.

Token integration

CSS VariablePurpose
--s-surface-elevatedSurface elevated
--s-surfaceSurface
--s-border-strongBorder strong
--s-border-styleBorder style
--s-borderBorder
--s-radius-mdRadius md
--s-text-secondaryText secondary
--s-duration-fastDuration fast
--s-primaryPrimary
--s-textText