@abgov/react-components
Version:
Government of Alberta - UI components for React
30 lines (29 loc) • 908 B
TypeScript
import { ReactNode, JSX } from 'react';
import { GoabDrawerPosition, GoabDrawerSize } from '@abgov/ui-components-common';
interface WCProps {
position: GoabDrawerPosition;
open?: boolean;
heading?: string;
maxsize?: GoabDrawerSize;
testid?: string;
ref: React.RefObject<HTMLElement | null>;
}
declare module "react" {
namespace JSX {
interface IntrinsicElements {
"goa-drawer": WCProps & React.HTMLAttributes<HTMLElement>;
}
}
}
export interface GoabDrawerProps {
position: GoabDrawerPosition;
open?: boolean;
heading?: string | ReactNode;
maxSize?: GoabDrawerSize;
testId?: string;
actions?: ReactNode;
children: ReactNode;
onClose: () => void;
}
export declare function GoabDrawer({ position, open, heading, maxSize, testId, actions, children, onClose, }: GoabDrawerProps): JSX.Element;
export default GoabDrawer;