firebase /firebaseui-web
FirebaseUI is an open-source JavaScript library for Web that provides simple, customizable UI bindings on top of Firebase SDKs to eliminate boilerplate code and promote best practices.
★ 4,886⑂ 1,129👁 203⑃ 680● 792▤ 56
More from this author
+0
Daily
4,886
stars
1,129
forks
203
watchers
680
prs
792
issues
56
releases
README
FirebaseUI for Web
Firebase UI for Web brings out-of-the-box components for Firebase for your favourite frameworks:
- Support for React, Shadcn and Angular.
- Composable authentication components; Email/Password Sign Up/In, Forgot Password, Email Link, Phone Auth, OAuth, Multi-Factor and more.
- Configure the behavior of internal logic and UI via behaviors.
- Framework agnostic core package; bring your own UI.
- Built-in localization via translations.
Migration
Firebase UI v7 is a complete rewrite to support modern languages and frameworks. You can find information about the previous version, v6, in the v6-archive branch.
If you are looking to migrate, please check the MIGRATION.md guide.
Table of contents
- Getting Started
- Styling
- Behaviors
- Translations
- Reference API
- Bring your own UI
Getting Started
To get started, make sure that the firebase package is installed in your project:
bash
npm install firebase
Once installed, setup Firebase in your project ensuring you have configured your Firebase instance via initializeApp:
ts
import { initializeApp } from 'firebase/app';
const app = initializeApp({ ... });
Next, follow the framework specific installation steps, for either React, Shadcn or Angular:
React
Install the @firebase-oss/ui-react package:
bash
npm install @firebase-oss/ui-react
Alongside your Firebase configuration, import the initializeUI function and pass your configured Firebase App instance:
ts
import { initializeApp } from 'firebase/app';
import { initializeUI } from '@firebase-oss/ui-core';
const app = initializeApp({ ... });
const ui = initializeUI({
app,
});
Once configured, provide the ui instance to your application by wrapping it within the FirebaseUIProvider component:
tsx
import { FirebaseUIProvider } from '@firebase-oss/ui-react';
function App() {
return (
...
);
}
Ensure your application includes the bundled styles for Firebase UI (see styling for additional info).
css
@import "@firebase-oss/ui-styles/dist.min.css";
/ Or, if you use tailwind /
@import "@firebase-oss/ui-styles/tailwind";
That's it 🎉 You can now import components and start building:
tsx
import { SignInAuthScreen } from '@firebase-oss/ui-react';
export function MySignInPage() {
return (
<
Welcome
{ ... }} /
)
}
View the reference API for a full list of components.
Shadcn
Firstly, ensure you have installed and setup Shadcn in your project.
Once configured, add the @firebase registry to your components.json file:
json
{
...
"registries": {
"@firebase": "https://firebaseopensource.com/r/{name}.json"
}
}
Next, add a Firebase UI component from the registry, e.g.
bash
npx shadcn@latest add @firebase/sign-in-auth-screen
This will automatically install any required dependencies.
Alongside your Firebase configuration, import the Top issues
#1307FirebaseUI support for Vue framework22 comments · 2026-01-16#1324@angular/fire Is Dead: Can I Use the Native Firebase SDK Instead?18 comments · 2026-02-04#1288v7 beta (rewrite)0 comments · 2025-12-03
Discussions
#1329The NPM installed source code doesn't reflect the tagged release branch for 7.0.2 beta.0 comments · 2026-02-08#1309v6 -> v7 migration notes3 comments · 2026-01-19#1300Support React 18.x on v7 beta0 comments · 2025-12-18#1296UX regression: Missing "Trouble getting email?" and self help troubleshooting flow1 comments · 2025-12-17#1294[v7 Beta Feedback] Missing translations - regression from v6's 40+ locales?0 comments · 2025-12-17#1270Release Candidate2 comments · 2025-11-16#1200Remove Anonymous Auth from Examples - Explanation using Phone Authentication0 comments · 2025-09-29#1168How can we handle signInSuccessUrl in v7 alpha?1 comments · 2025-08-01
Latest release
v7.1.0 v7.1.0 2026-08-12What's Changed chore(deps): bump actions/setup-node from 6.4.0 to 7.0.0 by @dependabot[bot] in https://github.com/firebase/firebaseui-web/pull/1419 chore(deps): bump actions/stale from 10.3.0 to 10.4.0 by @dependabot[bot] in https://github.com/firebase/firebaseui-web/pull/1417 chore(deps): bump @vitest/ui from 4.1.9 to 4.1.10 by @dependabot[bot] in https://github.com/firebase/firebaseui-web/pull/1415 fix(ci): remove .npmrc registry override that breaks all CI workflows by @just1and0 in https://github.com/firebase/firebaseui-web/pull/1425 chore(deps): bump vitest from 4.1.9 to 4.1.10