@comparaonline/ui-offer-sort
v6.1.0
Published
> This component will render a select box using [Material-UI](https://material-ui.com/api/select/) as a core
Downloads
161
Maintainers
Keywords
Readme
ui-offer-sort
This component will render a select box using Material-UI as a core
Installation
yarn add @comparaonline/ui-offer-sort
##Usage
import { Sort } from '@comparaonline/ui-offer-sort';
The Sort
is an extension of Select, so it receives all the props of it.
| Prop | required | type | Description |
| --------- | :------: | -----------------------------------------------------------------------------------------------------------------: | ------------------------: |
| options
| false
| Option [...] | Array of Option interface |
Implementation
import { Sort, Option } from '@comparaonline/ui-offer-sort';
const options: Option[] = [...];
class MyForm extends React.Component {
render() {
return (
<label>
<Sort options={options} />
</label>
);
}
}