@burrow-ui/select
v0.1.7
Published
Select / dropdown for Burrow UI (controlled, options with optional icons, top/bottom auto-flip)
Maintainers
Readme
@burrow-ui/select
Controlled select / dropdown.
import {type Option, Select} from "@burrow-ui/select";
const options: Option[] = [
{label: "RU", value: "ru", icon: "/flags/ru.svg"},
{label: "EN", value: "en", icon: "/flags/en.svg"},
];
const [lang, setLang] = useState(options[0]!);
<Select options={options} selected={lang} onSelect={setLang} size="120px" />;The dropdown auto-flips above the trigger when there's more space above than below (300px threshold). Click-outside dismisses.
