BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/remocn/combobox

UI Combobox

remocn/combobox
FreeComponent

A combobox whose opened/closed state is a pure function of the timeline; the panel fade/scale/lift are keyframed presets like select. The trigger reuses the Input presets (typed query + caret reveal via an injected inputStyle), the list is filtered by a pure case-insensitive substring on the visible query prefix, and rows reuse the SelectItem row.

Install it

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

Source

registry/remocn-ui/combobox/index.tsxwww.remocn.dev/r/combobox.json · first 6 KB
1"use client";
2
3import {
4 type InputStyle,
5 type InputStyleContext,
6 inputStyle,
7 inputStyleContext,
8} from "@/components/remocn/input";
9import {
10 SelectItemRow,
11 type SelectItemState,
12 type SelectItemStyle,
13 type SelectItemStyleContext,
14 selectItemStyle,
15 selectItemStyleContext,
16} from "@/components/remocn/select-item";
17import {
18 type RemocnTheme,
19 revealedText,
20 useRemocnTheme,
21} from "@/lib/remocn-ui";
22
23export type ComboboxState = "opened" | "closed";
24
25export interface ComboboxProps {
26 state?: ComboboxState;
27 style?: ComboboxStyle;
28 query?: string;
29 revealCount?: number;
30 placeholder?: string;
31 items?: string[];
32 selectedIndex?: number;
33 highlightedIndex?: number;
34 pressedIndex?: number;
35 itemStyles?: (SelectItemStyle | undefined)[];
36 inputStyle?: InputStyle;
37 theme?: Partial<RemocnTheme>;
38 className?: string;
39}
40
41const WIDTH = 280;
42
43export function filterComboboxItems(
44 items: string[],
45 query: string,
46 revealCount?: number,
47): string[] {
48 const visible = (
49 revealCount === undefined ? query : revealedText(query, revealCount)
50 )
51 .trim()
52 .toLowerCase();
53 if (visible === "") return items;
54 return items.filter((item) => item.toLowerCase().includes(visible));
55}
56
57export interface ComboboxStyle {
58 panelOpacity: number;
59 panelScale: number;
60 panelTranslateY: number;
61}
62
63export interface ComboboxStyleContext {
64 triggerCtx: InputStyleContext;
65 panelBg: string;
66 panelBorder: string;
67 mutedFg: string;
68 radius: number;
69 itemCtx: SelectItemStyleContext;
70}
71
72export function comboboxStyleContext(theme: RemocnTheme): ComboboxStyleContext {
73 return {
74 triggerCtx: inputStyleContext(theme),
75 panelBg: theme.popover,
76 panelBorder: theme.border,
77 mutedFg: theme.mutedForeground,
78 radius: theme.radius,
79 itemCtx: selectItemStyleContext(theme),
80 };
81}
82
83export function comboboxStyle(
84 state: ComboboxState,
85 _ctx: ComboboxStyleContext,
86): ComboboxStyle {
87 switch (state) {
88 case "opened":
89 return { panelOpacity: 1, panelScale: 1, panelTranslateY: 0 };
90 default:
91 return { panelOpacity: 0, panelScale: 0.96, panelTranslateY: -4 };
92 }
93}
94
95function rowState(
96 i: number,
97 selectedIndex: number,
98 highlightedIndex: number,
99 pressedIndex: number,
100): SelectItemState {
101 if (i === pressedIndex) return "press";
102 if (i === selectedIndex) return "selected";
103 if (i === highlightedIndex) return "hover";
104 return "idle";
105}
106
107export function Combobox({
108 state = "closed",
109 style,
110 query = "",
111// … truncated

What it pulls in

npm packages

  • remotion

Other registry items

  • @remocn/remocn-ui
  • @remocn/input
  • @remocn/select-item

Files it writes

  • registry/remocn-ui/combobox/index.tsx
  • registry/remocn-ui/combobox/use-combobox-transition.ts

Facts

Registry
remocn
Type
registry:component
Access
Free
Files written
2
Licence
the repository states none
In the index
at or before 2026-08-10
Last confirmed
yesterday

Go to the source

www.remocn.dev Remocn/remocn on GitHub Raw registry item This item as JSON

More from remocn

All 282 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
UI AccordionaccordionremocnComponentsFree1 dep · 2 files
UI AI Prompt Flowai-prompt-flowremocnComponentsFree1 dep
UI Alert Dialogalert-dialogremocnComponentsFree1 dep · 2 files
Animated Bar Chartanimated-bar-chartremocnComponentsFree1 dep
Animated Line Chartanimated-line-chartremocnComponentsFree1 dep
ASCII Dissolveascii-dissolveremocnComponentsFree2 deps
ASCII Renderascii-renderremocnComponentsFree1 dep
BackdropbackdropremocnComponentsFree1 dep

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