BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/nexvyn/combobox

Combobox

nexvyn/combobox
FreeComponent

A filterable select with live search, proximity highlight, and native select mirror for forms.

Live preview

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

Install it

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

Source

components/ui/combobox.tsxui.nexvyn.dev/r/combobox.json · first 6 KB
1'use client'
2
3import {
4 createContext,
5 forwardRef,
6 useCallback,
7 useContext,
8 useEffect,
9 useId,
10 useMemo,
11 useRef,
12 useState,
13 type HTMLAttributes,
14 type ReactNode,
15} from 'react'
16import { createPortal } from 'react-dom'
17import { type MotionValue } from 'motion/react'
18import { cn } from '@/lib/utils'
19import { useProximityHighlight, ProximityHighlight } from '@/lib/hooks/use-proximity-highlight'
20import { matchesSearch, buildSearchableText } from '@/lib/search-match'
21
22export interface ComboboxOption {
23 value: string
24 label: string
25 description?: string
26}
27
28interface ComboboxContextValue {
29 value: string
30 setValue: (v: string) => void
31 open: boolean
32 setOpen: (next: boolean) => void
33 query: string
34 setQuery: (q: string) => void
35 disabled: boolean
36 triggerId: string
37 contentId: string
38 nextIndex: () => number
39 labelMap: React.MutableRefObject<Map<string, string>>
40 registerOption: (value: string, label: string) => void
41 options: ComboboxOption[]
42 placeholder: string
43 emptyMessage: string
44 clearable: boolean
45 openOnFocus: boolean
46 setValueRef: React.MutableRefObject<(v: string) => void>
47 activeDescendantId: string | null
48 setActiveDescendantId: (id: string | null) => void
49 suppressNextFocusOpenRef: React.MutableRefObject<boolean>
50}
51
52const ComboboxContext = createContext<ComboboxContextValue | null>(null)
53
54function useComboboxCtx(componentName: string) {
55 const ctx = useContext(ComboboxContext)
56 if (!ctx) throw new Error(`${componentName} must be used within Combobox`)
57 return ctx
58}
59
60interface ComboboxContentContextValue {
61 activeIndex: number | null
62 setActiveIndex: (i: number | null) => void
63 highlightX: ReturnType<typeof import('motion/react').useSpring>
64 highlightSize: MotionValue<number>
65 highlightOpacity: ReturnType<typeof import('motion/react').useSpring>
66 axis: 'x' | 'y'
67 registerItem: (index: number, el: HTMLElement | null) => void
68 filteredOptions: ComboboxOption[]
69 setValueRef: React.MutableRefObject<(v: string) => void>
70}
71
72const ComboboxContentContext = createContext<ComboboxContentContextValue | null>(null)
73
74function useComboboxContentCtx(componentName: string) {
75 const ctx = useContext(ComboboxContentContext)
76 if (!ctx) throw new Error(`${componentName} must be used within ComboboxContent`)
77 return ctx
78}
79
80export interface ComboboxProps {
81 children: ReactNode
82 options: ComboboxOption[]
83 value?: string
84 defaultValue?: string
85 onValueChange?: (value: string) => void
86 placeholder?: string
87// … truncated

What it pulls in

npm packages

  • motion

Files it writes

  • components/ui/combobox.tsx
  • lib/hooks/use-proximity-highlight.tsx

Facts

Registry
nexvyn
Type
registry:ui
Access
Free
Files written
2
Licence
MIT
In the index
at or before 2026-08-10
Last confirmed
yesterday

Go to the source

Docs on nexvyn ui.nexvyn.dev Nexvyn/Nexvyn-ui on GitHub Raw registry item This item as JSON

More from nexvyn

All 40 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordionnexvynComponentsFree1 dep
Action Buttonaction-buttonnexvynComponentsFree3 deps · 4 files
Adaptive Actionsadaptive-actionsnexvynComponentsFree1 dep
AI Inputai-inputnexvynComponentsFree1 dep · 2 files
BadgebadgenexvynComponentsFree2 deps · 2 files
Bars Themebars-themenexvynComponentsFree1 dep · 3 files
Bounce Sidebarbounce-sidebarnexvynComponentsFree1 dep · 2 files
BreadcrumbsbreadcrumbsnexvynComponentsFree1 dep · 2 files

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