Skip to content

Combobox

A select you can type into. The list opens below (or above when there is no room); typing filters it, matched text brightens, filtered rows collapse and the rest glide into place.

$149 once · every Pro piece

Customize

One highlight slides between rows; the chosen option carries an accent dot. Full ARIA combobox pattern.

Install

npx shadcn@latest add @obsyde/combobox

Needs your licence key · Get Pro

Usage

Import it from where the CLI puts it, or copy the files below by hand.

import { Combobox } from '@/components/obsyde/ember/combobox/Combobox';

export function Example() {
  return (
    <Combobox
      label="Month"
      options="January, February, March, April, May, June, July, August, September, October, November, December"
    />
  );
}

Files

What you get with Pro: plain React, TypeScript and CSS, with no dependencies.

  • ember/combobox/Combobox.tsxcomponent
  • ember/combobox/combobox.cssstyles
  • ember/combobox/ComboboxDemo.tsxdemo
  • ember/forms-kit/kit.tsxshared
  • ember/shared/spring.tsshared
  • ember/shared/accent.tsshared
  • ember/shared/ember.cssshared

API

PropTypeDefault
accentAccent'ember' | 'volt' | 'arc''ember'
labelLabelstring'Month'
optionsOptions (comma-separated)string'January, February, March, A…'
valueValuestring—
placeholderPlaceholderstring'Choose or type'
disabledDisabledbooleanfalse