ContextButton
A Context Button provides a way to interact with your application on a global level.
Examples
import React from 'react';
import ReactDOM from 'react-dom';
import { ContextButton, Icon } from 'furl-components';
ReactDOM.render(
<ContextButton
verticalPosition='bottom'
horizontalPosition='right'
color='primary'
>
<Icon name='plus' />
</ContextButton>,
document.getElementById('root')
);API
| Property | Description | Type | Default | ||
|---|---|---|---|---|---|
| color | context button color | string | 'plain' | ||
| size | context button size | string | 'normal' | ||
| text | context button text transformaton | string | 'normal' | ||
| verticalPosition | context button vertical position | string | 'bottom' | ||
| horizontalPosition | context button horizontal position | string | 'right' | ||
| onClick | context 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'.textcan be either'normal'or'uppercase'.verticalPositioncan be one of the following:'top','centerr'or'bottom'.horizontalPositioncan be one of the following:'left','center'or'right'.
