Qeetrix

Toggle

Usage

Import

import { Toggle } from "@qeetrix/ui";

It can also be imported on its own from @qeetrix/ui/components/toggle.

Variant props

PropValues
variantdefault · outline
sizedefault · sm · lg

States

hover · focus-visible · active · disabled · invalid

Support

FeatureStatus
Right-to-leftNot applicable
Dark modeSupported
DensitySupported
Server renderingClient component
Reduced motionSupported

Accessibility

Follows the WAI-ARIA button pattern. Not yet audited.

Keyboard

Tab Enter Space

Tests

Covered by unit, accessibility (axe), interaction and visual tests.