Button

Solid tones

Solid is the default variant. Brand is the primary call to action; neutral and critical cover secondary and destructive actions.

<Inline
space="small"
alignY="center">
<Button tone="brand">Brand</Button>
<Button tone="neutral">Neutral</Button>
<Button tone="critical">Critical</Button>
</Inline>

Soft tones

Replaces the solid fill with a tinted background and matching text color, for lower emphasis. Available in neutral, critical, caution, positive, info, and promote tones.

<Inline
space="small"
alignY="center">
<Button
variant="soft"
tone="neutral">
Neutral
</Button>
<Button
variant="soft"
tone="critical">
Critical
</Button>
<Button
variant="soft"
tone="caution">
Caution
</Button>
<Button
variant="soft"
tone="positive">
Positive
</Button>
<Button
variant="soft"
tone="info">
Info
</Button>
<Button
variant="soft"
tone="promote">
Promote
</Button>
</Inline>

Sizes

standard is the default size. small suits compact contexts such as toolbars or inline actions.

<Inline
space="small"
alignY="center">
<Button size="standard">Standard</Button>
<Button size="small">Small</Button>
</Inline>

Disabled

Dims the button and removes all interactivity. Both the solid and soft variants support this state.

<Inline
space="small"
alignY="center">
<Button disabled>Disabled</Button>
<Button
variant="soft"
disabled>
Disabled
</Button>
</Inline>

Invoker commands

command and commandFor wire a button to any dialog or popover by element ID, using the native HTML Invoker Commands API. No JavaScript required.

<Button
commandFor="demo-nav"
command="show-modal">
Open menu
</Button>
<MobileNavigation
id="demo-nav"
title="Lloyd Atkinson"
links={[
{ title: 'Articles', to: '/articles/' },
{ title: 'Notes', to: '/notes/' },
{ title: 'Speaking', to: '/speaking/' },
{ title: 'About', to: '/about/' },
]}
iconLinks={[
{ title: 'Read', to: '/reading/', icon: 'books' },
{ title: 'RSS Feed', to: '/rss.xml', icon: 'rss' },
{ title: 'Contact', to: '/inbox/', icon: 'envelope' },
]}
/>