Skip to content

feat(ui): add combobox - #9655

Draft
austincalvelage wants to merge 1 commit into
austin/input-groupfrom
austin/combobox
Draft

feat(ui): add combobox#9655
austincalvelage wants to merge 1 commit into
austin/input-groupfrom
austin/combobox

Conversation

@austincalvelage

@austincalvelage austincalvelage commented Sep 4, 2026

Copy link
Copy Markdown
Member

Description

Adds a styled Mosaic Combobox with searchable options in floating and inline list layouts. Its input supports the headless variant for use inside InputGroup.

https://swingset-git-austin-combobox.clerkstage.dev/components/combobox

@changeset-bot

changeset-bot Bot commented Sep 4, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 7705087

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercel Bot commented Sep 4, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
clerk-js-sandbox Ready Ready Preview Sep 4, 2026 5:03am UTC
swingset Ready Ready Preview Sep 4, 2026 5:03am UTC

Request Review

@github-actions github-actions Bot added the ui label Sep 4, 2026
@coderabbitai

coderabbitai Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Comment @coderabbitai help to get the list of available commands.

@maxyinger maxyinger left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe make this whole thing align and give the popup some more margin so it's not touching the focus shadow?

Image

<div
{...mergeStyleProps(
themeProps('combobox-viewport'),
stylex.props(reset.base, ...scrollAreaViewport(), styles.viewport),

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep goin back n forth on if we should have a scroll bar on here at all. I like the fade regardless tho, almost want to make it a bit smaller tho. think it's customizeable through css vars, but can't remember

<Primitive.Positioner
{...mergeStyleProps(themeProps('combobox-positioner'), stylex.props(reset.base, styles.positioner))}
>
<Primitive.Popup

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might need to add a Freeze on close for the popup primitive. if it doesn't make sense in the primitive we should add one here so it doesn't flash when we select and it exits

'use client';

import type { AutocompleteProps } from '@clerk/headless/autocomplete';
import { Autocomplete as Primitive } from '@clerk/headless/autocomplete';

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one thing that's interesting here is that baseui separates these out:
https://ui.shadcn.com/docs/components/aria/combobox
https://base-ui.com/react/components/autocomplete

might just be our nomenclature meaning different things, but I think they're supposed to have slightly different functionality. this is the interesting blurb there on the autocomplete:

Use Combobox instead of Autocomplete if the selection should be remembered and the input value cannot be custom. Unlike Combobox, Autocomplete’s input can contain free-form text, as its suggestions only optionally autocomplete the text

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if that's functionality we're kinda baking into the country code selector that should just be intrinsic to the combobox?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants