@dabapps/roe
Version:
A Collection of React Components for Project Development
75 lines (63 loc) • 1.33 kB
Markdown
#### Example
```js
<div>
<SpacedGroup block>
<Button>
Default
</Button>
<Button className="primary">
Primary
</Button>
<Button className="secondary">
Secondary
</Button>
<Button className="tertiary">
Tertiary
</Button>
<Button className="success">
Success
</Button>
<Button className="warning">
Warning
</Button>
<Button className="error">
Error
</Button>
<Button className="info">
Info
</Button>
</SpacedGroup>
<SpacedGroup block className="margin-top-large">
<Button block>
Block
</Button>
</SpacedGroup>
<SpacedGroup block className="margin-top-large">
<Button small>
Small
</Button>
<Button large>
Large
</Button>
</SpacedGroup>
</div>
```
#### Custom buttons
A mixin is available that allows you to define custom buttons styles.
```less
.create-button(@name, @background, @color);
```
You can then use your custom buttons by supplying the name you provided the mixin as the class name.
```html
<Button className="custom">
Custom
</Button>
```
#### Less variables
```less
@button-text-color-dark: @grey-dark;
@button-text-color-light: @grey-lightest;
@button-background-default: @grey-lighter;
@font-size-button: 1em;
@line-height-button: 1.3em;
```