UNPKG

@ni/nimble-react

Version:

React components for the NI Nimble Design System

14 lines (13 loc) 775 B
import { Drawer, UserDismissed as DrawerUserDismissed, drawerTag } from '@ni/nimble-components/dist/esm/drawer'; import { DrawerLocation } from '@ni/nimble-components/dist/esm/drawer/types'; import type { RefAttributes, RefObject } from 'react'; export { drawerTag }; export { type Drawer, DrawerUserDismissed, DrawerLocation }; export declare const NimbleDrawer: import("@lit/react").ReactWebComponent<Drawer<void>, {}>; /** * Helper to assign Drawer refs with generics to ref bindings * See: https://github.com/ni/nimble/issues/2784 * @param drawerRef A ref to a drawer created with `useRef` * @returns A ref type compatible with normal `ref` bindings */ export declare const fromDrawerRef: <T>(drawerRef: RefObject<Drawer<T> | null>) => RefAttributes<Drawer>["ref"];