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
TypeScriptApache-2.0Created 2016-05-11firebase.google.com/
下载:v7.1.0v7.1.0 ↓7.1.02026-08-12
+0
日增长
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

Discussions

Latest release

v7.1.0 v7.1.0 2026-08-12
What'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 

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON