Button

Playground

Properties

Variant
Tone
Size
Icon only
Leading icon
Trailing icon
Disabled
Generating (highlight)

Content

Label

Usage

Use children for the button label. Pass SVG components to leadingIcon and trailingIcon. Icon-only buttons need an aria-label, and xs is available only with iconOnly. Use generating with the highlight tone to show an animated state. Your app handles async actions and sets disabled and aria-busy.

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

export default function Example() {
  return <Button type="button">{"Text"}</Button>;
}

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

Composition