Type Definitions
object
# ButtonGroupProps
Props passed to ButtonGroup element.
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
size |
ButtonPropsSize
|
<optional> |
Default size for all buttons. The same as ButtonProps.size |
rounded |
ButtonPropsRounded
|
<optional> |
Default rounded property for all buttons. The same as ButtonProps.rounded |
buttons |
Array.<ButtonInGroupProps>
|
Array of top level buttons. |
object
# ButtonInGroupProps
Props of buttons in ButtonGroup
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
icon |
string
|
<optional> |
Icon of a button |
label |
string
|
null
|
<optional> |
Label, when set to null, with icon given, button will adjust it's margin |
variant |
VariantType
|
<optional> |
Variant compatible with Button variant |
href |
string
|
<optional> |
Variant href |
source |
any
|
<optional> |
Button source - if set, this will be passed to onClick handler. It can be useful if when, you have one handler function for all the buttons. |
onClick |
function
|
<optional> |
On click handler invoked when button has been clicked. |
buttons |
Array.<ButtonInGroupProps>
|
<optional> |
Array of nested buttons. |
className |
string
|
<optional> |