Button
Buttons allow users to interact with your application.
Examples
import React from 'react';
import ReactDOM from 'react-dom';
import { Button } from 'furl-components';
ReactDOM.render(
<div>
<Button
color='primary'
size='large'
fill='solid'
text='uppercase'
onClick={() => console.log('Hello!')}
>
Hello
</Button>
<Button
type='link'
fill='link'
shape='rounded'
href='https://www.google.com/'
openIn='external'
>
Goodbye
</Button>
</div>,
document.getElementById('root')
);API
| Property | Description | Type | Default | ||
|---|---|---|---|---|---|
| color | button color | string | 'plain' | ||
| size | button size | string | 'normal' | ||
| fill | button fill style | string | 'flat' | ||
| shape | button shape | string | 'normal' | ||
| text | button text transformation | string | 'normal' | ||
| type | button type | string | 'button' | ||
| disabled | button disabled state | boolean | false | ||
| href | button hyperlink url | string | |||
| openIn | target of the hyperlink> | string | 'self' | ||
| onClick | button onclick event> | function | |||
Notes
colorcan be any of the predefined color palettes ('plain','primary','secondary','success','warning'or'danger').sizecan be one of the following:'small','normal'or'large'.fillcan be one of the following:'flat','solid','light','gradient','outline','ghost'or'link'.shapecan be either'normal'or'rounded'.textcan be either'normal'or'uppercase'.typecan be one of the following:'button','submit','reset'or'link'.hrefandopenInonly apply whentypeis equal to'link'.
