Home > @uniformdev/design-system > DrawerContextValue

DrawerContextValue type

Signature:

type DrawerContextValue = {
    providerId: string;
    drawersRegistry: DrawersRegistryRecord[];
    registerDrawer: (props: RegisterDrawerProps) => void;
    unregisterDrawer: (drawerId: Pick<DrawerItem, 'id' | 'stackId' | 'instanceKey'>) => void;
    drawerTakeoverStackId?: string;
    registerTakeoverStackId: (stackId: string) => void;
    unregisterTakeoverStackId: (stackId: string) => void;
};

References: DrawersRegistryRecord, DrawerItem