BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/shadcn-solidjs/combobox

combobox

shadcn-solidjs/combobox
FreeComponent

shadcn-solidjs publishes no description for this item.

Live preview

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

Install it

npx shadcn@latest add https://shadcn-solidjs.com/r/combobox.json

Source

src/registry/ui/combobox.tsxshadcn-solidjs.com/r/combobox.json · first 6 KB
1import * as ComboboxPrimitive from "@kobalte/core/combobox";
2import type { PolymorphicProps } from "@kobalte/core/polymorphic";
3
4import { cn } from "~/lib/utils.ts";
5import IconCheck from "~icons/lucide/check";
6import IconChevronDown from "~icons/lucide/chevron-down";
7import IconX from "~icons/lucide/x";
8import type { Component, ComponentProps, JSX, ValidComponent } from "solid-js";
9import { Show, splitProps } from "solid-js";
10
11import { Button } from "./button.tsx";
12import {
13 InputGroup,
14 InputGroupAddon,
15 InputGroupButton,
16 InputGroupInput,
17} from "./input-group.tsx";
18
19// Kobalte's default triggerMode="input" only opens the popup once the
20// user types; upstream's base-ui combobox opens it when the input is
21// clicked. triggerMode="focus" is the closest match: clicking the input
22// opens the popup (it also opens on keyboard focus, which upstream does
23// not do — the smaller mismatch). placement="bottom-start" mirrors
24// upstream ComboboxContent's side/align defaults; Kobalte only accepts
25// it on the root. Consumers can override both.
26const Combobox = <Option, OptGroup = never, T extends ValidComponent = "div">(
27 props: PolymorphicProps<
28 T,
29 ComboboxPrimitive.ComboboxRootProps<Option, OptGroup, T>
30 >,
31) => (
32 <ComboboxPrimitive.Root
33 triggerMode="focus"
34 placement="bottom-start"
35 {...(props as ComboboxPrimitive.ComboboxRootProps<Option, OptGroup>)}
36 />
37);
38const ComboboxItemLabel = ComboboxPrimitive.ItemLabel;
39const ComboboxHiddenSelect = ComboboxPrimitive.HiddenSelect;
40
41type ComboboxTriggerProps<T extends ValidComponent = "button"> =
42 & ComboboxPrimitive.ComboboxTriggerProps<T>
43 & {
44 class?: string | undefined;
45 children?: JSX.Element;
46 };
47
48const ComboboxTrigger = <T extends ValidComponent = "button">(
49 props: PolymorphicProps<T, ComboboxTriggerProps<T>>,
50) => {
51 const [local, others] = splitProps(props as ComboboxTriggerProps, [
52 "class",
53 "children",
54 ]);
55 return (
56 <ComboboxPrimitive.Trigger
57 data-slot="combobox-trigger"
58 class={cn("[&_svg:not([class*='size-'])]:size-4", local.class)}
59 {...others}
60 >
61 {local.children}
62 <IconChevronDown
63 class="text-muted-foreground size-4 pointer-events-none"
64 />
65 </ComboboxPrimitive.Trigger>
66 );
67};
68
69type ComboboxClearProps = ComponentProps<"button">;
70
71const ComboboxClear: Component<ComboboxClearProps> = (props) => {
72 const [local, others] = splitProps(props, ["class"]);
73 return (
74 <InputGroupButton
75// … truncated

What it pulls in

npm packages

  • @kobalte/core

Other registry items

  • button
  • input-group

Facts

Registry
shadcn-solidjs
Type
registry:ui
Access
Free
Files written
0
Licence
MIT
In the index
at or before 2026-08-16
Last confirmed
today

Go to the source

Docs on shadcn-solidjs shadcn-solidjs.com ptzburn/shadcn-solidjs on GitHub Raw registry item This item as JSON

More from shadcn-solidjs

All 85 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
accordionaccordionshadcn-solidjsComponentsFree1 dep
alertalertshadcn-solidjsComponentsFree2 deps
alert-dialogalert-dialogshadcn-solidjsComponentsFree2 deps
aspect-ratioaspect-ratioshadcn-solidjsComponentsFreeno deps
attachmentattachmentshadcn-solidjsComponentsFree2 deps
avataravatarshadcn-solidjsComponentsFree1 dep
badgebadgeshadcn-solidjsComponentsFree2 deps
breadcrumbbreadcrumbshadcn-solidjsComponentsFree1 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

ToolDrift

What the AI coding tools changed last night

tooldrift.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 ToolDrift

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 ToolDrift

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 ToolDrift

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