feat(ui): Add phone input - #9656
Conversation
🦋 Changeset detectedLatest commit: 1055125 The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen 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 |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueComment |
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/electron
@clerk/electron-passkeys
@clerk/eslint-plugin
@clerk/expo
@clerk/expo-google-signin
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/hono
@clerk/localizations
@clerk/nextjs
@clerk/nuxt
@clerk/react
@clerk/react-router
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/ui
@clerk/upgrade
@clerk/vue
commit: |
|
|
||
| <InputGroup.Text | ||
| aria-hidden='true' | ||
| {...mergeStyleProps(themeProps('phone-input-prefix'), stylex.props(styles.prefix))} |
There was a problem hiding this comment.
like I wonder if we use the addon api if this can just be an addon aligned to the start?
similar to http input in this example:
https://ui.shadcn.com/docs/components/aria/input-group#button
| }} | ||
| > | ||
| <Field.Root> | ||
| <InputGroup.Root |
There was a problem hiding this comment.
base has a good example here. it's nice to see how they compose everything:
https://base-ui.com/react/components/combobox#input-inside-popup
this is a little different cus of the main input, but figured I mention the reference

Description
https://swingset-git-austin-phone-input.clerkstage.dev/components/phone-input
Adds a Mosaic
PhoneInputwith a searchable country picker, formatted number entry, and normalized E.164 values. It integrates with MosaicFieldand supports controlled and uncontrolled usage.