easyui.

Discover / Forms

Select

Choose an option from a compact list.

Usage notes

Provide an accessible name for the trigger and descriptive labels for each option.

Examples use @easyui/react and its stylesheet. Read the setup guide.

Example source

import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@easyui/react";

export default function Example() {
  return (
    <Select items={[{ value: "design", label: "Design" }, { value: "engineering", label: "Engineering" }]}>
      <SelectTrigger aria-label="Team"><SelectValue placeholder="Choose a team" /></SelectTrigger>
      <SelectContent>
        <SelectItem value="design">Design</SelectItem>
        <SelectItem value="engineering">Engineering</SelectItem>
      </SelectContent>
    </Select>
  );
}

Explore more components