@ni/nimble-react
Version:
React components for the NI Nimble Design System
13 lines • 588 B
JavaScript
import { Dialog, UserDismissed as DialogUserDismissed, dialogTag } from '@ni/nimble-components/dist/esm/dialog';
import { wrap } from '../utilities/react-wrapper';
export { dialogTag };
export { DialogUserDismissed };
export const NimbleDialog = wrap(Dialog);
/**
* 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 const fromDialogRef = (dialogRef) => dialogRef;
//# sourceMappingURL=index.js.map