āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā š shadcn/directory/clerk/clerk-docs/reference/components/authentication/waitlist ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
<Waitlist /> component'
description: The <Waitlist /> component renders a waitlist form that allows users to join for early access to your application.
sdk: astro, chrome-extension, expo, nextjs, nuxt, react, react-router, remix, tanstack-react-start, vue, js-frontend
{{ style: { maxWidth: '460px' } }}
In Waitlist mode, users can register their interest in your app by joining a waitlist. This mode is ideal for apps in early development stages or those wanting to generate interest before launch. Learn more about additional features available in Waitlist mode.
The <Waitlist /> component renders a form that allows users to join for early access to your app.
Before using the <Waitlist /> component, you must enable Waitlist mode in the Clerk Dashboard:
<If sdk={["astro", "chrome-extension", "expo", "nextjs", "nuxt", "react", "react-router", "remix", "tanstack-react-start", "vue"]}
[!WARNING] Before using the
<Waitlist />component, you must provide thewaitlistUrlprop either in the<ClerkProvider>or<SignIn />component to ensure proper functionality.
The following example includes a basic implementation of the <Waitlist /> component. You can use this as a starting point for your own implementation.
export default function WaitlistPage() {
return <Waitlist />
}
```
</If>
<If sdk="react">
```tsx {{ filename: 'src/App.tsx' }}
import { Waitlist } from '@clerk/clerk-react'
function App() {
return <Waitlist />
}
export default App
```
</If>
<If sdk="astro">
```astro {{ filename: 'pages/waitlist.astro' }}
---
import { Waitlist as WaitlistAstro } from '@clerk/astro/components'
---
<WaitlistAstro />
```
</If>
<If sdk="expo">
<Include src="_partials/expo/web-only-callout" />
```jsx {{ filename: '/app/waitlist.web.tsx' }}
import { Waitlist } from '@clerk/clerk-expo/web'
export default function WaitlistPage() {
return <Waitlist />
}
```
</If>
<If sdk="chrome-extension">
```jsx {{ filename: 'src/routes/waitlist.tsx' }}
import { Waitlist } from '@clerk/chrome-extension'
export default function WaitlistPage() {
return <Waitlist />
}
```
</If>
<If sdk="react-router">
```tsx {{ filename: 'app/routes/waitlist.tsx' }}
import { Waitlist } from '@clerk/react-router'
export default function WaitlistPage() {
return <Waitlist />
}
```
</If>
<If sdk="remix">
```tsx {{ filename: 'app/routes/waitlist.tsx' }}
import { Waitlist } from '@clerk/remix'
export default function WaitlistPage() {
return <Waitlist />
}
```
</If>
<If sdk="tanstack-react-start">
```tsx {{ filename: 'app/routes/waitlist.tsx' }}
import { Waitlist } from '@clerk/tanstack-react-start'
import { createFileRoute } from '@tanstack/react-router'
export const Route = createFileRoute('/waitlist')({
component: WaitlistPage,
})
function WaitlistPage() {
return <Waitlist />
}
```
</If>
<If sdk="nuxt">
```vue {{ filename: 'pages/waitlist.vue' }}
<script setup>
// Components are automatically imported
</script>
<template>
<Waitlist />
</template>
```
</If>
<If sdk="vue">
```vue {{ filename: 'waitlist.vue' }}
<script setup lang="ts">
import { Waitlist } from '@clerk/vue'
</script>
<template>
<Waitlist />
</template>
```
</If>
</If>
<If sdk="js-frontend">
## Usage with JavaScript
The following methods available on an instance of the Clerk class are used to render and control the <Waitlist /> component:
The following examples assume that you followed the quickstart to add Clerk to your JavaScript app.
Render the <Waitlist /> component to an HTML <div> element.
function mountWaitlist(node: HTMLDivElement, props?: WaitlistProps): void
The `<div>` element used to render in the `<Waitlist />` component
---
- `props?`
- [`WaitlistProps`](#properties)
The properties to pass to the `<Waitlist />` component
</Properties>
mountWaitlist() usageimport { Clerk } from '@clerk/clerk-js'
// Initialize Clerk with your Clerk Publishable Key
const clerk = new Clerk('{{pub_key}}')
await clerk.load()
document.getElementById('app').innerHTML = `
<div id="waitlist"></div>
`
const waitlistDiv = document.getElementById('waitlist')
clerk.mountWaitlist(waitlistDiv)
Unmount and run cleanup on an existing <Waitlist /> component instance.
function unmountWaitlist(node: HTMLDivElement): void
unmountWaitlist() paramsThe container `<div>` element with a rendered `<Waitlist />` component instance
</Properties>
unmountWaitlist() usageimport { Clerk } from '@clerk/clerk-js'
// Initialize Clerk with your Clerk Publishable Key
const clerk = new Clerk('{{pub_key}}')
await clerk.load()
document.getElementById('app').innerHTML = `
<div id="waitlist"></div>
`
const waitlistDiv = document.getElementById('waitlist')
clerk.mountWaitlist(waitlistDiv)
// ...
clerk.unmountWaitlist(waitlistDiv)
openWaitlist()Opens the <Waitlist /> component as an overlay at the root of your HTML body element.
function openWaitlist(props?: WaitlistProps): void
openWaitlist() paramsThe properties to pass to the `<Waitlist />` component
</Properties>
openWaitlist() usageimport { Clerk } from '@clerk/clerk-js'
// Initialize Clerk with your Clerk Publishable Key
const clerk = new Clerk('{{pub_key}}')
await clerk.load()
document.getElementById('app').innerHTML = `
<div id="waitlist"></div>
`
const waitlistDiv = document.getElementById('waitlist')
clerk.openWaitlist(waitlistDiv)
closeWaitlist()Closes the waitlist overlay.
function closeWaitlist(): void
closeWaitlist() usageimport { Clerk } from '@clerk/clerk-js'
// Initialize Clerk with your Clerk Publishable Key
const clerk = new Clerk('{{pub_key}}')
await clerk.load()
document.getElementById('app').innerHTML = `
<div id="waitlist"></div>
`
const waitlistDiv = document.getElementById('waitlist')
clerk.openWaitlist(waitlistDiv)
// ...
clerk.closeWaitlist(waitlistDiv)
</If>
All props are optional.
<Properties> - `afterJoinWaitlistUrl` - `string`The full URL or path to navigate to after joining the waitlist.
appearanceOptional object to style your components. Will only affect Clerk components and not Account Portal pages.
fallback?ReactNodeAn optional element to be rendered while the component is mounting.
signInUrlstringThe full URL or path to the sign in page. Used for the 'Already have an account? Sign in' link that's rendered. It's recommended to use the environment variable instead. </Properties>
To learn about how to customize Clerk components, see the customization guide.
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā