digitinary-ui
Version:
Digitinary UI Library
26 lines (25 loc) • 649 B
TypeScript
import React from 'react';
import './style.scss';
type ButtonProps = {
text: string;
onClick: () => void;
};
type FooterProps = {
closeButton?: ButtonProps;
submitButton?: ButtonProps;
customFooter?: React.ReactNode;
};
type SideDrawerV2Props = {
open: boolean;
setOpen: React.Dispatch<React.SetStateAction<boolean>>;
children: React.ReactNode;
className?: string;
onClickOutSide?: () => void;
width?: string;
anchor?: 'left' | 'right';
title?: string;
footer?: FooterProps;
showCloseIcon?: boolean;
};
declare const SideDrawerV2: React.FC<SideDrawerV2Props>;
export default SideDrawerV2;