@engie-group/fluid-design-system-react
Version:
Fluid Design System React
26 lines (25 loc) • 979 B
TypeScript
import { HeaderDrawerProperties } from '@engie-group/fluid-types';
import { HTMLAttributes, MouseEventHandler, Ref } from 'react';
type HeaderDrawerRefs = {
/**
* Reference to the back icon button.
*/
iconBackRef?: Ref<HTMLButtonElement>;
/**
* Reference to the close icon button.
*/
iconCloseRef?: Ref<HTMLButtonElement>;
};
type HeaderDrawerCallbacks = {
/**
* Callback when the close button is clicked.
*/
onCloseClicked?: MouseEventHandler;
/**
* Callback when the back button is clicked.
*/
onBackClicked?: MouseEventHandler;
};
export type NJHeaderDrawerProps = HTMLAttributes<HTMLDivElement> & HeaderDrawerProperties & HeaderDrawerCallbacks & HeaderDrawerRefs;
export declare const NJHeaderDrawer: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & HeaderDrawerProperties & HeaderDrawerCallbacks & HeaderDrawerRefs & import("react").RefAttributes<HTMLDivElement>>;
export {};