Andeus Designfor Reactv0.1
Components · Actions

Button

A physical push button. One or two words, sentence case. One primary per view; the default ring marks what Return does.

jsx
import { Button } from '@andeus/ui';

Variants

jsx
<Button variant="primary">Run</Button>
<Button>Save</Button>
<Button variant="ink">Export</Button>
<Button variant="ghost">Cancel</Button>

Default ring

jsx
<Button variant="ghost">Not yet</Button>
<Button isDefault>Delete</Button>

Sizes and icons

jsx
<Button size="s" icon="plus">Add</Button>
<Button icon="play">Backtest</Button>
<Button size="l" iconRight="arrow-right">Continue</Button>
<Button disabled>Disabled</Button>

Props

PropTypeDefault
variant'primary' | 'secondary' | 'ink' | 'ghost''secondary'Visual weight.
size's' | 'm' | 'l''m'Height 28 / 36 / 44.
isDefaultbooleanfalseDraws the default-button ring.
roundbooleanfalseCircular key.
iconIconName—Icon before the label.
iconRightIconName—Icon after the label.
fullWidthbooleanfalseStretch to container.
disabledbooleanfalse
type'button' | 'submit' | 'reset''button'
onClick(e: React.MouseEvent) => void—
childrenReactNode—Label.
PreviousIconsNextIconButton