@comparaonline/ui-offer-sort

> This component will render a select box using [Material-UI](https://material-ui.com/api/select/) as a core

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@comparaonline/ui-offer-sort
6.1.02 years ago5 years agoMinified + gzip package size for @comparaonline/ui-offer-sort in KB

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>
        );
    }
}