@fluentliteui/dropdown
v0.0.17
Published
install ``` yarn add @fluentliteui/dropdown ```
Downloads
1
Readme
@fluentliteui/dropdown
install
yarn add @fluentliteui/dropdown
usage
import { Dropdown } from "@fluentliteui/dropdown";
import "@fluentliteui/dropdown/dist/index.css";
function App() {
const [dropdownValue, setDropdownValue] = useState<string | number | boolean>("tom");
<Dropdown className="my-dropdown" disabled={false} label={"name"} value={dropdownValue} options={[{
title: "Tom",
key: "tom",
value: "tom"
}, {
title: "Jerry",
key: "jerry",
value: "Jerry"
}]} onOptionChange={setDropdownValue} />
}