Skip to content

ButterIX v1 is out: versions, multiple languages, Ask AI, and a per-site MCP server, all built in. →

Button

<Button> and <ButtonGroup> render link buttons or display-only buttons.

A link button (with href) or a display-only button:

<ButtonGroup>
  <Button intent="primary" href="/guides/get-started/quickstart" rightIcon="lucide:arrow-right">Quickstart</Button>
  <Button outlined href="/api-reference" icon="lucide:code">API reference</Button>
  <Button minimal href="https://github.com" >GitHub</Button>
</ButtonGroup>

More styles:

<Button intent="success" small>Success</Button>
<Button intent="warning" rounded>Warning</Button>
<Button intent="danger" outlined>Danger</Button>
<Button mono>biti deploy</Button>
<Button disabled>Unavailable</Button>
intentnone | primary | success | warning | danger
Color. Neutral when not set.
hrefurl
When set, renders as a link button.
targetstring
Link target; external links default to _blank.
textstring
Button text (can also be written as children).
icon / rightIconicon
Left / right icon.
outlinedbooleanDefault false
Outlined style.
minimalbooleanDefault false
Transparent background.
small / largebooleanDefault false
Size.
roundedbooleanDefault false
Fully rounded.
monobooleanDefault false
Monospace font.
fullbooleanDefault false
Full width.
activebooleanDefault false
Pressed state.
disabledbooleanDefault false
Disabled.

<ButtonGroup> lays out several buttons in a row, wrapping when space runs out.