-
Notifications
You must be signed in to change notification settings - Fork 481
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Alexis Aguilar <[email protected]>
- Loading branch information
1 parent
c3ec4df
commit 6a6b3ab
Showing
3 changed files
with
85 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
--- | ||
title: Build your own sign-up page with prebuilt components on web | ||
description: Learn how to add custom sign-up page to your Expo app with Clerk's prebuilt components. | ||
--- | ||
|
||
This guide shows you how to use the [`<SignUp />`](/docs/components/authentication/sign-up) prebuilt component in order to build custom sign-up page for your Expo **web** app. | ||
|
||
This guide uses [Expo Router](https://docs.expo.dev/router/introduction/) and the [platform-specific extensions](https://docs.expo.dev/router/create-pages/#platform-specific-extensions) to build the sign-in-or-up page specifically for the **web** platform. | ||
|
||
<Steps> | ||
## Build a sign-up page | ||
|
||
The following example demonstrates how to render the [`<SignUp />`](/docs/components/authentication/sign-up) component. | ||
|
||
```tsx filename="/app/sign-up.web.tsx" | ||
import { SignUp } from '@clerk/clerk-expo/web' | ||
|
||
export default function Page() { | ||
return <SignUp /> | ||
} | ||
``` | ||
|
||
## Visit your new page | ||
|
||
To run your project, use the following command: | ||
|
||
<CodeBlockTabs options={["npm", "yarn", "pnpm"]}> | ||
```bash filename="terminal" | ||
npm run web | ||
``` | ||
|
||
```bash filename="terminal" | ||
yarn web | ||
``` | ||
|
||
```bash filename="terminal" | ||
pnpm web | ||
``` | ||
</CodeBlockTabs> | ||
|
||
Visit your new custom pages locally at [localhost:8081/sign-up](http://localhost:8081/sign-up). | ||
</Steps> | ||
|
||
## More resources | ||
|
||
Use the following guides to learn more about Clerk components, how to build custom flows for your native apps, and how to use Clerk's client-side helpers. | ||
|
||
<Cards> | ||
- [Prebuilt components](/docs/components/overview) | ||
- Learn more about Clerk's suite of components that let you quickly add authentication to your app. | ||
|
||
--- | ||
|
||
- [Customization & localization](/docs/customization/overview) | ||
- Learn how to customize and localize Clerk components. | ||
|
||
--- | ||
|
||
- [Custom flows](/docs/custom-flows/overview) | ||
- Expo native apps require custom flows in place of prebuilt components. Learn more about custom flows. | ||
|
||
--- | ||
|
||
- [Client-side helpers](/docs/references/react/use-user) | ||
- Learn more about our client-side helpers and how to use them. | ||
</Cards> |