Skip to content

useDashboardInjection

This composable provides access to the Dashboard context. It must be used within a FluxDashboard component tree.

WARNING

This composable will throw an error if used outside of a FluxDashboard component.

Usage

ts
import { useDashboardInjection } from '@flux-ui/dashboard';

const dashboard = useDashboardInjection();

Type declarations

ts
declare function useDashboardInjection(): FluxDashboardInjection;

Used by