Backstage
    Preparing search index...

    Function BUIProvider

    • Provides integration capabilities to all descendant BUI components.

      An explicit host hook supplies navigation, href resolution, and active-state detection, including for independently loaded BUI components. BUI components bind this hook to React Aria at their own route scope. Without a host hook, components use an explicitly supplied React Aria router or browser navigation.

      React Aria components used directly need their own routing integration.

      External links, downloads, and links with non-self targets use native browser navigation. Components outside a routing context also use native links.

      Parameters

      Returns Element

      import { BUIProvider } from '@backstage/ui';
      import { useAnalytics as useBackstageAnalytics } from '@backstage/core-plugin-api';

      function App() {
      return (
      <BUIProvider useAnalytics={useBackstageAnalytics}>
      <AppContent />
      </BUIProvider>
      );
      }