Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Combobox examples · Standard

Large Size Variant Combobox for React

A large combobox with a taller button and bigger text for prominent fields.

Framework
UI library

A priority picker sized up. The button uses the large size and text-base, and the options use text-base too, so the field stands out and is easier to hit on touch screens. Use it for the main choice on a page or in touch-first layouts.

Preview

Preview width

Installation

Sign in to get your install command
Free with an account. It carries your token, so the CLI installs everything in one go.

FAQ

What makes the button large?

size="lg" on the outline button, with text-base and a fixed w-[280px]. They're props of the Button the trigger renders.

Does the list use the same type size?

Yes. Each ComboboxItem has text-base.

What are the options?

Low Priority, Medium Priority, High Priority and Urgent Priority. The search box says Search priority..., and No priority found. shows when nothing matches.

What does the button show?

Select priority level... until a priority is picked, then its label.

How wide is the list?

It opens at the width of the button, so the 280px trigger gives a list just as wide.

Can I mix sizes in one form?

Keep the fields in one row the same size. Use the large one for a single prominent choice, and the default size for the rest of the form.