@comparaonline/ui-offer-sort

This component will render a select box using Material-UI as a core

Usage no npm install needed!

<script type="module">
  import comparaonlineUiOfferSort from 'https://cdn.skypack.dev/@comparaonline/ui-offer-sort';
</script>

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