Skip to content

Commit

Permalink
Update ActionButton.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xotahal authored Oct 5, 2016
1 parent 46a7e26 commit b47ed90
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/ActionButton.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ render() {
### API
```js
const propTypes = {
/**
* Array of names of icons that will be shown after the main button is pressed
*/
actions: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.string),
PropTypes.arrayOf(PropTypes.shape({
icon: PropTypes.string,
label: PropTypes.string,
})),
]),
/**
* Called when button is pressed. Text is passed as param
*/
Expand All @@ -31,6 +41,11 @@ const propTypes = {
*/
icon: PropTypes.string,
/**
* Leave it empty if you don't want any transition after press. Otherwise, it will be trnasform
* to another view - depends on transition value.
*/
transition: PropTypes.oneOf(['toolbar', 'speedDial']),
/**
* You can overide any style for this button
*/
style: PropTypes.shape({
Expand Down

0 comments on commit b47ed90

Please sign in to comment.