Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 656 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 656 Bytes

Dropdown

Dropdowns provide a menu to select one or many from a list of more than 4 items.

Read more about when and how to use the Dropdown component on the website.

Getting started

Install the package

yarn add @hig/dropdown

Import the component and CSS

import Dropdown from "@hig/dropdown";
import "@hig/dropdown/build/index.css";

Basic usage

<Dropdown
  label="Uncontrolled Dropdown"
  instructions="instructions for regular Uncontrolled dropdown"
  placeholder="placeholder for regular Uncontrolled dropdown"
  options={["Foo", "Bar"]}
/>