Button
to trigger an operation.
<Button>default button</Button>
<Button>default button</Button>
Basic usage of Button component.
Properties | Description | Type | Default |
---|---|---|---|
type | it could be set to primary , ghost , warning or omitted | string | - |
size | it could be set to large 、small or omitted | string | large |
activeStyle | the feedback's custom style (set to false to disable click feedback) | {}/boolean | {} |
activeClassName | the feedback's custom class name | string | |
disabled | set disabled state | boolean | false |
onClick | set the handler to handle click event | (e: Object): void | - |
style | custom style | Object | - |
inline | whether set as an inline button | boolean | false |
round | whether set as a round button | boolean | false |
loading | whether set loading state | boolean | false |
icon | it could be one type value of the Icon Component or any valid React.Element. (Note: It will be overwritten by the loading config setting) | string /React.Element | - |
prefixCls | the prefix class | string | r-button |
className | the css class name | string | '' |