Utility
Terminal
█
select-demo █
Loading preview... █
█
█
█
█
█
█
█
█
█
█
█
█
█
█
█Installation
$ pnpm dlx shadcn@latest add @termcn/opentui/select
Usage
import { Select } from "@/components/ui/select";<Select
label="Choose a framework"
options={[
{ value: "next", label: "Next.js" },
{ value: "remix", label: "Remix" },
{ value: "astro", label: "Astro" },
]}
onChange={(value) => {}}
/>API Reference
Select
| Prop | Type | Default |
|---|---|---|
options | SelectOption<T>[] | required |
value | T | - |
onChange | (value: T) => void | - |
onSubmit | (value: T) => void | - |
label | string | - |
cursor | string | "›" |
cursorColor | string | - |