Button

Buttons are used to trigger actions.

Usage

import { Button } from "@aqqo/aqqo-ui";
<Button>Button</Button>
<Button iconOnly aria-label="Print overview">
  <Command weight="duotone" className="size-5" />
</Button>

Examples

Secondary

<Button variant="secondary">Button</Button>
<Button variant="secondary" iconOnly aria-label="Print overview">
  <Command weight="duotone" className="size-5" />
</Button>

Tertiary

<Button variant="tertiary">Button</Button>

Destructive

<Button destructive>Button</Button>
<Button destructive iconOnly aria-label="Print overview">
  <Command weight="duotone" className="size-5" />
</Button>

Destructive - secondary

<Button variant="secondary" destructive>
  Button
</Button>
<Button variant="secondary" destructive iconOnly aria-label="Print overview">
  <Command weight="duotone" className="size-5" />
</Button>

Destructive - tertiary

<Button variant="tertiary" destructive>
  Button
</Button>

Disabled

<Button disabled>Button</Button>

Props

Button props
PropTypeValuesDescription
variantstringprimary (default) | secondary | tertiaryDetermines the styling variant of the button
sizestringbase (default) | smallDetermines the size of the button
destructivebooleantrue | false (default)Applies destructive styling to the button
iconOnlybooleantrue | false (default)Applies specific padding to the button
classNamestring-Additional CSS classes for custom styling
...propsany-Additional HTML attributes for the button