5.2.0 • Published 2 months ago

@lendi-ui/dropdown v5.2.0

Weekly downloads
810
License
ISC
Repository
-
Last release
2 months ago

@lendi-ui/dropdown

A component.

Installation

yarn add @lendi-ui/dropdown

Usage

import { NativeSelect, Select } from '@lendi-ui/dropdown';
(items = [
  {
    value: '1',
    label: '5 years',
  },
  {
    value: '2',
    label: '10 years',
  },
  {
    value: '3',
    label: '15 years',
  },
  {
    value: '4',
    label: '20 years',
  },
  {
    value: '5',
    label: '25 years',
  },
]),
      <NativeSelect
        size={{mobile:'sm', tablet:'md', desktop:'lg'}}
        items={this.state.items}
        isFullWidth={true}
        value={this.state.value}
        onChange={(value) => {this.setState({value})
          }}
      />
      <Select
          size="sm"
          options={items}
          placeholder="Size SM"
          hideSelectedOptions={false}
          isAutoFocus
        />

***Dropdown also support default select props like autoFocus, disabled, onFocus, onChange, name and all AriaAttributes.

Properties

<PropTable>
  <PropTable.Entry name="className" defaultValue=""type="string" description="The custom style for Dropdown."/>
  <PropTable.Entry name="isDisabled" type={'"true | false"'} defaultValue="false" description="Whether the dropdown is disabled."/>
  <PropTable.Entry name="isError" type={'"true | false"'} defaultValue="false" description="Whether the dropdown is not selected."/>
  <PropTable.Entry name="isFullWidth" type={'"true | false"'} defaultValue="true" description="the dropdown is intended to use the full width of the container"/>
  <PropTable.Entry name="isLoading" type={'"true | false"'} defaultValue="false" description="Whether the dropdown icon is Spinner or ChevronDown."/>
  <PropTable.Entry name="items" required type="[{value: string, label: string}]" description="An object array with 'value' and 'label' that display in this component"/>
  <PropTable.Entry name="size" type={'"lg" | "md" | "sm"'} defaultValue="md" description="The inline-dropdown size"/>
</PropTable>
5.2.0

2 months ago

5.1.0

6 months ago

5.0.0

6 months ago

4.3.15

1 year ago

4.3.14-beta.0

1 year ago

4.3.13

1 year ago

4.3.14

1 year ago

4.3.15-beta.0

1 year ago

4.3.15-beta.1

1 year ago

4.3.15-beta.2

1 year ago

4.3.12-beta.0

2 years ago

4.3.12

2 years ago

4.3.13-beta.0

2 years ago

4.3.11

2 years ago

4.3.10

2 years ago

4.3.11-beta.0

2 years ago

4.3.12-canary.0

2 years ago

4.3.10-beta.0

2 years ago

4.3.9

2 years ago

4.3.8

2 years ago

4.3.7

2 years ago

4.3.8-beta.2

2 years ago

4.3.8-beta.3

2 years ago

4.3.8-beta.0

2 years ago

5.0.0-beta.2

2 years ago

4.3.8-beta.1

2 years ago

4.3.9-beta.0

2 years ago

4.3.7-beta.2

2 years ago

4.3.9-beta.1

2 years ago

4.3.7-beta.1

2 years ago

4.3.7-beta.3

2 years ago

4.3.9-canary.2

2 years ago

4.3.7-beta.0

2 years ago

4.3.6

2 years ago

4.3.5

2 years ago

4.3.5-beta.0

2 years ago

4.3.4

2 years ago

4.3.3

2 years ago

4.3.2

3 years ago

4.3.1

3 years ago

4.3.0

3 years ago

4.2.7

4 years ago

4.2.6

4 years ago

4.2.5

4 years ago

4.2.4

4 years ago

4.2.3

4 years ago

4.2.2

4 years ago

4.2.1

4 years ago

4.2.0

4 years ago

5.0.0-beta.0

4 years ago

4.1.0

4 years ago

4.0.2

4 years ago

4.0.1

5 years ago

4.0.0

5 years ago

4.0.0-alpha

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.2.1

5 years ago

2.2.0

5 years ago

2.1.0

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.1.0

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago