2018-04-05 16:29:22 +03:00
### Primary Button
2017-12-15 16:53:59 +02:00
Primary button to be used once per page. Only use to indicate main action per pattern.
2017-12-06 17:03:40 +02:00
Min. width: 120px
2017-10-11 14:01:26 +03:00
```jsx
2018-02-26 14:07:30 +02:00
// Name: Active
2017-10-31 12:03:44 +02:00
const React = require('react');
const { default: Button } = require('./');
2017-05-18 21:21:33 +03:00
< span >
< Button > Inspire the lazy< / Button >
2017-10-12 21:15:51 +03:00
< / span > ;
2017-05-18 21:21:33 +03:00
2018-02-26 14:07:30 +02:00
// Tab: Disabled
2017-10-31 12:03:44 +02:00
const React = require('react');
const { default: Button } = require('./');
2017-05-18 21:21:33 +03:00
< span >
2018-02-26 14:07:30 +02:00
< Button disabled > Inspire the brave< / Button >
2017-10-12 21:15:51 +03:00
< / span > ;
2017-05-18 21:21:33 +03:00
```
2018-04-05 16:29:22 +03:00
### Secondary Button
2017-12-15 16:53:59 +02:00
2018-02-26 14:07:30 +02:00
Secondary buttons can be used freely to indicate other actions on patterns.
2017-12-15 16:09:09 +02:00
Min. width: 120px
```jsx
2018-02-26 14:07:30 +02:00
// Name: Active
2017-12-15 16:09:09 +02:00
const React = require('react');
const { default: Button } = require('./');
< span >
2018-02-26 14:07:30 +02:00
< Button secondary > Inspire the brave< / Button >
2017-12-15 16:09:09 +02:00
< / span > ;
2017-12-15 16:53:59 +02:00
2018-02-26 14:07:30 +02:00
// Tab: Disabled
2017-10-31 12:03:44 +02:00
const React = require('react');
const { default: Button } = require('./');
2017-05-18 21:21:33 +03:00
< span >
2018-02-26 14:07:30 +02:00
< Button secondary disabled >
2017-12-15 16:53:59 +02:00
Inspire the brave
< / Button >
2017-10-12 21:15:51 +03:00
< / span > ;
2017-05-18 21:21:33 +03:00
```
2018-04-05 16:29:22 +03:00
### Loading Button
2017-05-18 21:21:33 +03:00
2017-10-11 14:01:26 +03:00
```jsx
2017-10-31 12:03:44 +02:00
const React = require('react');
const { default: Button } = require('./');
2017-05-18 21:21:33 +03:00
< span >
2017-12-06 17:03:40 +02:00
< Button secondary loading >
Inspire the liars
2017-10-12 21:15:51 +03:00
< / Button >
< / span > ;
2017-05-18 21:21:33 +03:00
```
2017-10-12 21:55:05 +03:00
2018-04-05 16:29:22 +03:00
### Quick Action
2017-12-15 16:53:59 +02:00
2018-01-03 16:46:20 +02:00
Quick action buttons can be embedded in components to give additional functionality. They can be used in either primary or secondary color palettes, depending on importance.
2017-10-12 21:55:05 +03:00
```jsx
2018-02-26 14:07:30 +02:00
// Name: Active
2017-10-31 12:03:44 +02:00
const React = require('react');
const { default: Button } = require('./');
2017-12-06 17:03:40 +02:00
const { Actions } = require('../icons');
2017-10-12 21:55:05 +03:00
< span >
2018-02-26 14:07:30 +02:00
< Button secondary icon actions >
2017-12-06 17:03:40 +02:00
< Actions / >
2017-10-12 23:13:44 +03:00
< / Button >
2018-02-26 14:07:30 +02:00
< / span > ;
// Tab: Disabled
const React = require('react');
const { default: Button } = require('./');
const { Actions } = require('../icons');
< span >
< Button secondary icon actions disabled >
2017-12-06 17:03:40 +02:00
< Actions / >
< / Button >
2017-12-15 16:53:59 +02:00
< / span > ;
2017-12-06 17:03:40 +02:00
```
2018-04-05 16:29:22 +03:00
### Primary
2017-12-06 17:03:40 +02:00
Primary anchor is a type of a link that sits outside the body text.
```jsx
const React = require('react');
const Anchor = require('../text').Anchor;
2017-12-15 16:53:59 +02:00
< Anchor href = "https://joyent.com" > Inspire the lazy< / Anchor > ;
2017-12-06 17:03:40 +02:00
```
2018-04-05 16:29:22 +03:00
### Disabled
2017-12-06 17:03:40 +02:00
Disabled anchors cannot be actioned and the cursor is disabled.
```jsx
const React = require('react');
const Anchor = require('../text').Anchor;
< Anchor disabled href = "https://joyent.com" >
Inspire the lazy disabled
< / Anchor > ;
```