Button
Component for every call-to-action.
- React
- CSS
<Button>Button</Button>
<button class="button">Button</button>
Props
Component
Change the HTML tag of the component or use another component.
- React
- CSS
<Button>Button</Button>
<Button component="a">Anchor</Button>
<Button component={Link}>React component</Button>
<button class="button">Button</button>
<a href="#" class="button">Anchor link</a>
Kind
Set the type of content.
- React
- CSS
<Button>Text</Button>
<Button kind="icon">{/* insert icon */}</Button>
<button class="button">Text</button>
<button class="button button-icon"><!-- insert icon --></button>
Variant
Change the button style.
- React
- CSS
<Button>Fill</Button>
<Button variant="stroke">Stroke</Button>
<Button variant="transparent">Transparent</Button>
<button class="button">Fill</button>
<button class="button button-stroke">Stroke</button>
<button class="button button-transparent">Transparent</button>
Size
- React
- CSS
<Button size="xs">Xsmall</Button>
<Button size="sm">Small</Button>
<Button>Medium</Button>
<Button size="lg">Large</Button>
<button class="button button-xs">Xsmall</button>
<button class="button button-sm">Small</button>
<button class="button">Medium</button>
<button class="button button-lg">Large</button>
Color
- React
- CSS
<Button>Primary</Button>
<Button color="secondary">Secondary</Button>
<Button color="success">Success</Button>
<Button color="info">Info</Button>
<Button color="warning">Warning</Button>
<Button color="error">Error</Button>
<Button color="grey">Grey</Button>
<Button color="main">Main</Button>
<Button color="contrast">Contrast</Button>
<button class="button">Primary</button>
<button class="button button-secondary">Secondary</button>
<button class="button button-success">Success</button>
<button class="button button-info">Info</button>
<button class="button button-warning">Warning</button>
<button class="button button-error">Error</button>
<button class="button button-grey">Grey</button>
<button class="button button-main">Main</button>
<button class="button button-contrast">Contrast</button>
FullWidth
- React
- CSS
<Button fullWidth>Full width</Button>
<button class="button button-fullWidth">Full width</button>
Disabled
- React
- CSS
<Button disabled>Disabled</Button>
<button class="button button-disabled">Disabled</button>
Icons
- React
- CSS
<Button iconLeft={{/* insert icon */}}>Icon left</Button>
<Button iconRight={{/* insert icon */}}>Icon right</Button>
<button type="button" class="button">
<!-- insert icon -->
Icon left
</button>
<button type="button" class="button">
Icon right
<!-- insert icon -->
</button>