preskok/ui

A select component with searchable options and custom styling.

Installation

pnpm dlx @preskok-org/ui@latest add select

Usage

import { Select } from "@/registry/preskok/ui/preskok-ui/select"
 
export function SelectDemo() {
  return (
    <Select
      label="Project"
      defaultSelectedKey="1"
      items={[{ id: "1", name: "Alpha" }]}
    >
      {(item) => <span>{item.name}</span>}
    </Select>
  )
}