@ni/nimble-react
Version:
React components for the NI Nimble Design System
13 lines (12 loc) • 681 B
TypeScript
import { Dialog, UserDismissed as DialogUserDismissed, dialogTag } from '@ni/nimble-components/dist/esm/dialog';
import type { RefAttributes, RefObject } from 'react';
export { dialogTag };
export { type Dialog, DialogUserDismissed };
export declare const NimbleDialog: import("@lit/react").ReactWebComponent<Dialog<void>, {}>;
/**
* Helper to assign Dialog refs with generics to ref bindings
* See: https://github.com/ni/nimble/issues/2784
* @param dialogRef A ref to a dialog created with `useRef`
* @returns A ref type compatible with normal `ref` bindings
*/
export declare const fromDialogRef: <T>(dialogRef: RefObject<Dialog<T> | null>) => RefAttributes<Dialog>["ref"];