BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/rivelle/combobox

Combobox

rivelle/combobox
FreeComponent

A searchable controlled option picker built from Command and Popover.

Live preview

live · rendered by the registry
Rendered by rivelle on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://rivelle.dev/r/combobox.json

Source

registry/nova/ui/combobox.tsxrivelle.dev/r/combobox.json
1"use client";
2
3import * as React from "react";
4import { Check, ChevronsUpDown } from "lucide-react";
5
6import { cn } from "@/lib/utils";
7import { Button } from "@/components/ui/button";
8import {
9 Command,
10 CommandEmpty,
11 CommandGroup,
12 CommandInput,
13 CommandItem,
14 CommandList,
15} from "@/components/ui/command";
16import {
17 Popover,
18 PopoverContent,
19 PopoverTrigger,
20} from "@/components/ui/popover";
21
22export type ComboboxOption = {
23 value: string;
24 label: string;
25 disabled?: boolean;
26};
27
28function Combobox({
29 options,
30 value,
31 defaultValue,
32 onValueChange,
33 placeholder = "Select an option",
34 searchPlaceholder = "Search...",
35 emptyText = "No results found.",
36 disabled,
37 className,
38}: {
39 options: ComboboxOption[];
40 value?: string;
41 defaultValue?: string;
42 onValueChange?: (value: string) => void;
43 placeholder?: string;
44 searchPlaceholder?: string;
45 emptyText?: string;
46 disabled?: boolean;
47 className?: string;
48}) {
49 const [open, setOpen] = React.useState(false);
50 const [internalValue, setInternalValue] = React.useState(defaultValue ?? "");
51 const selectedValue = value ?? internalValue;
52 const selected = options.find((option) => option.value === selectedValue);
53
54 function select(nextValue: string) {
55 if (value === undefined) setInternalValue(nextValue);
56 onValueChange?.(nextValue);
57 setOpen(false);
58 }
59
60 return (
61 <Popover open={open} onOpenChange={setOpen}>
62 <PopoverTrigger asChild>
63 <Button
64 role="combobox"
65 aria-expanded={open}
66 disabled={disabled}
67 variant="outline"
68 className={cn(
69 "h-11.5 w-full justify-between px-4 font-medium hover:-translate-y-0",
70 !selected && "text-muted-foreground",
71 className,
72 )}
73 >
74 <span className="truncate">{selected?.label ?? placeholder}</span>
75 <ChevronsUpDown className="ml-2 size-4 shrink-0 text-muted-foreground" />
76 </Button>
77 </PopoverTrigger>
78 <PopoverContent
79 align="start"
80 className="w-[var(--radix-popover-trigger-width)] p-0"
81 >
82 <Command>
83 <CommandInput placeholder={searchPlaceholder} />
84 <CommandList>
85 <CommandEmpty>{emptyText}</CommandEmpty>
86 <CommandGroup>
87 {options.map((option) => (
88 <CommandItem
89 disabled={option.disabled}
90 key={option.value}
91 value={option.label}
92// … truncated

What it pulls in

npm packages

  • lucide-react

Other registry items

  • @rivelle/utils
  • @rivelle/button
  • @rivelle/command
  • @rivelle/popover

Files it writes

  • registry/nova/ui/combobox.tsx

Facts

Registry
rivelle
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-12
Last confirmed
today

Go to the source

Docs on rivelle rivelle.dev w3cproject/rivelle-ui on GitHub Raw registry item This item as JSON

More from rivelle

All 83 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordionrivelleComponentsFree2 deps
AlertalertrivelleComponentsFree1 dep
Alert Dialogalert-dialogrivelleComponentsFree1 dep
Aspect Ratioaspect-ratiorivelleComponentsFree1 dep
AvataravatarrivelleComponentsFree1 dep
BadgebadgerivelleComponentsFree2 deps
BreadcrumbbreadcrumbrivelleComponentsFree2 deps
ButtonbuttonrivelleComponentsFree2 deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

KitGrade

SaaS starter kits, scored from measured facts

kitgrade.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex