Style buttons with different palette colors

Viewed 1923

Using Material-UI v1:

I want to create multiple buttons with different colors, which will be taken from the Material-UI palette.

Ideally, I would love to have something like:

<Button color="colorFromThePalette">
<Button color={ theme.palette.myColor }>

But I get the following error:

Failed prop type: Invalid prop color of value someValue supplied to Button, expected one of ["default","inherit","primary","accent","contrast"].

What are my options, considering I want to be consistent with the material design palette?

1 Answers
Related