## Functions

| Function | Description |
|---|---|
| [CrashlyticsRoutes({ firebaseApp, crashlyticsOptions }, input)](https://firebase.google.com/docs/reference/js/crashlytics_next-navigation#crashlyticsroutes_097ca29) | ***(Public Preview)*** A client-side routing component for Next.js App Router that automatically captures navigation events and updates route attributes.This component should be mounted inside a root Client Component layout. |

## Interfaces

| Interface | Description |
|---|---|
| [Crashlytics](https://firebase.google.com/docs/reference/js/crashlytics_next-navigation.crashlytics#crashlytics_interface) | ***(Public Preview)*** An instance of the Firebase Crashlytics SDK.Do not create this instance directly. Instead, use [getCrashlytics()](https://firebase.google.com/docs/reference/js/crashlytics#getcrashlytics_a9d22a1). |
| [CrashlyticsFeature](https://firebase.google.com/docs/reference/js/crashlytics_next-navigation.crashlyticsfeature#crashlyticsfeature_interface) | **(EXPERIMENTAL)** An opaque feature plugin object returned by Crashlytics feature factory functions such as [breadcrumbs()](https://firebase.google.com/docs/reference/js/crashlytics#breadcrumbs). |
| [CrashlyticsOptions](https://firebase.google.com/docs/reference/js/crashlytics_next-navigation.crashlyticsoptions#crashlyticsoptions_interface) | ***(Public Preview)*** Options for initializing the Crashlytics service using [getCrashlytics()](https://firebase.google.com/docs/reference/js/crashlytics#getcrashlytics_a9d22a1). |

## function({ firebaseApp, crashlyticsOptions }, ...)

### CrashlyticsRoutes({ firebaseApp, crashlyticsOptions }, input)

> This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

A client-side routing component for Next.js App Router that automatically captures navigation events and updates route attributes.

This component should be mounted inside a root Client Component layout.

**Signature:**

    export declare function CrashlyticsRoutes(input: {
        firebaseApp: FirebaseApp;
        crashlyticsOptions?: CrashlyticsOptions;
    }): null;

#### Parameters

| Parameter | Type | Description |
|---|---|---|
| { firebaseApp, crashlyticsOptions } | (not declared) |   |
| input | { firebaseApp: [FirebaseApp](https://firebase.google.com/docs/reference/js/app.firebaseapp#firebaseapp_interface); crashlyticsOptions?: [CrashlyticsOptions](https://firebase.google.com/docs/reference/js/crashlytics_next-navigation.crashlyticsoptions#crashlyticsoptions_interface); } |   |

**Returns:**

null

### Example

    // app/layout.tsx
    import { CrashlyticsRoutes } from 'firebase/crashlytics/next-navigation';

    export default function RootLayout({ children }) {
      return (
        <html>
          <body>
            <CrashlyticsRoutes firebaseApp={app} />
            {children}
          </body>
        </html>
      );
    }