Toggle

Playground

Properties

Size
Shape
Pressed
Leading icon
Trailing icon
Disabled

Content

Label

Usage

Toggle changes the pressed state. ToggleLink follows href and uses selected to mark the current location.

'use client';
import { Toggle } from '@mbsw/ui';

export default function Example() {
  return <Toggle defaultPressed>{"Text"}</Toggle>;
}

The Playground Code tab includes the full example with your current settings. See Installation for the CSS imports.

Composition