Select
Loading example…
Wraps the native <select> (keeps the system picker on mobile) and draws
the chevron with an icon.
Import
Section titled “Import”import { Select } from "@jcsoftdev/ui/forms";Single-component entry points tree-shake to just this component: @jcsoftdev/ui/forms/select.
<Select aria-label="Barbero"> {options}</Select>| Prop | Type | Default | Description |
|---|---|---|---|
size |
"sm" | "md" |
"md" |
sm is 30px and md (default) 38px, the heights of Button and Input of the same size. |
intent |
string |
||
intentKey |
string |
* marks a required prop.
It also accepts the native props of the element or primitive it renders (for example className, id, aria-* and event handlers).
Storybook stories
Section titled “Storybook stories”Source
Section titled “Source”packages/ui/src/forms/select/select.tsx