The Material UI Button with more color options from theme palette
Take a look at Live Demo
npm install mui-button
Note:
You will need to have material-ui
installed, in order to use this component
npm install @material-ui/core
import React from 'react';
import Button from 'mui-button';
function Example() {
return (
<Button color='error' variant='outlined'>
Submit
</Button>
);
}
Name | Type | Default | Description |
---|---|---|---|
color | 'inherit' | 'primary' | 'secondary' | 'error' | 'warning' | 'success' | 'info' | 'default | 'primary' | The color of the component. It supports those theme colors that make sense for this component. |
The MIT License.