firebase-nextjs logoFirebase-NextJS

Not logged in

(Log in to see auth demo)

Components

Firebase-NextJS comes with pre built components that help in improving the user experience and reducing the developer effort.

Profile Button

This component provides a button, and upon clicking, a user popup will be opened. It can be used on client side as well as server side pages.

1 2 3 4 5 6 7 import { ProfileButton } from "firebase-nextjs/client/components"; export default function Page() { return <div> <ProfileButton /> </div> }

RESULT

Log in to see the button.

Logout Button

Log out button takes children and the when the user clicks on the children, the user will be logged out.

1 2 3 4 5 6 7 8 9 import { LogoutButton } from "firebase-nextjs/client/components"; export default function Page() { return <div> <LogoutButton> <button> Log Out </button> </LogoutButton> </div> }

RESULT

If you would like to see any more components, please add an issue at
https://github.com/NirmalScaria/firebase-nextjs/issues.