@acodez/select

React select component

Usage no npm install needed!

<script type="module">
  import acodezSelect from 'https://cdn.skypack.dev/@acodez/select';
</script>

README

@acodez/select

npm_version license

React select component with option for multi-select.



Installation

npm install @acodez/select

Props API

Property Type Required Description
placeholder string yes Placeholder/Default label
options array yes add value as an array under this
multiple string no add multiselect option

Usage

import Select from "@acodez/select";

Example - Basic

    <Select
        placeholder="Pick one"
        options={[
          { value: 'Rock' },
          { value: 'Paper' },   
          { value: 'Scissors' }
        ]}
    />

Example - Multiple

    <Select
        placeholder="Pick as much as you want!"
        multiple
        options={[
          { value: 'Rock' },
          { value: 'Paper' },   
          { value: 'Scissors' }
        ]}
    />