A plugin for https://github.com/mui-org/material-ui that creates a segmented control component
npm install mui-segmented-controlA MUI component made with hooks compatible with MUI >= 4.0.0

``sh`
npm install mui-segmented-control
`jsx
import React, { useState } from 'react';
import SegmentedControl from 'mui-segmented-control';
function App() {
const [value, setValue] = useState();
return (
| Prop | Description | Default value |
| --- | ------ | --- |
| buttonProps | props injected to the button component | {} |
| classes | classes object for custom styling | {} |
| color | Selector color ['primary', 'secondary'] | 'primary'
| onChange | callback to handle option click | () => null
| options | options array of objects in the form: {label, value} | []
| value | selected value that will be shown in the component | null