MCPcopy Create free account
hub / github.com/vercel/examples / SignInButton

Function SignInButton

edge-middleware/clerk-authentication/utils/buttons.js:3–10  ·  view source on GitHub ↗
({ children, ...props })

Source from the content-addressed store, hash-verified

1import { useClerk } from '@clerk/nextjs'
2
3export const SignInButton = ({ children, ...props }) => {
4 const { openSignIn } = useClerk()
5 return (
6 <button {...props} onClick={() => openSignIn()}>
7 {children}
8 </button>
9 )
10}
11
12export const SignUpButton = ({ children, ...props }) => {
13 const { openSignUp } = useClerk()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected