<FirebaseApp>
The <FirebaseApp>
component is the root of your Firebase app. It provides the
SDKs to all the other components without having to import them again.
Props
auth?
- Firebase Auth Instancefirestore?
- Firebase Firestore InstancerealtimeDb?
- Firebase Realtime Database InstanceremoteConfig?
- Firebase Remote Config Instancestorage?
- Firebase Storage Instance
Examples
Here's an example of how to use the
<FirebaseApp>
component.+layout.svelte<script> import { FirebaseApp } from 'firebase-svelte'; // import only the ones you need import { auth, firestore, realtimeDb, remoteConfig, storage } from '$lib/firebase'; </script> <FirebaseApp {auth} {firestore} {realtimeDb} {remoteConfig} {storage} > <slot /> </FirebaseApp>