@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
26 lines (25 loc) • 865 B
TypeScript
import type { DrawerProps as AntdDrawerProps } from 'antd';
import type { CSSProperties, ReactNode, Ref } from 'react';
import type { ActionIconProps } from "../ActionIcon";
export interface DrawerProps extends Omit<AntdDrawerProps, 'styles' | 'classNames'> {
classNames?: AntdDrawerProps['classNames'] & {
bodyContent?: string;
extra?: string;
sidebar?: string;
sidebarContent?: string;
title?: string;
};
closeIconProps?: ActionIconProps;
containerMaxWidth?: number | string;
noHeader?: boolean;
ref?: Ref<HTMLDivElement>;
sidebar?: ReactNode;
sidebarWidth?: number;
styles?: AntdDrawerProps['styles'] & {
bodyContent?: CSSProperties;
extra?: CSSProperties;
sidebar?: CSSProperties;
sidebarContent?: CSSProperties;
title?: CSSProperties;
};
}