Methods
# static Button(props) → {React.ReactElement}
A button component that extends the base material-ui button
All props are passed to the base button
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
props |
object
|
||
backgroundColor |
string
|
<optional> |
the background color of the button |
variant |
string
|
<optional> |
the variant of the button |
size |
string
|
<optional> |
the size of the button |
color |
string
|
<optional> |
the color of the button |
label |
string
|
<optional> |
the label of the button if provided children will be ignored |
onClick |
function
|
<optional> |
the onClick handler of the button |
children |
string
|
<optional> |
the children of the button if label is not provided |
React.ReactElement
Example
<Button variant="contained" label="Click me" />
// or
<Button variant="contained">Click Me</Button>