UNPKG

1.03 kBTypeScriptView Raw
1import * as React from 'react';
2import { ModalProps as BaseModalProps } from '@restart/ui/Modal';
3import { BsPrefixRefForwardingComponent } from './helpers';
4export type OffcanvasPlacement = 'start' | 'end' | 'top' | 'bottom';
5export interface OffcanvasProps extends Omit<BaseModalProps, 'role' | 'renderBackdrop' | 'renderDialog' | 'transition' | 'backdrop' | 'backdropTransition'> {
6 bsPrefix?: string;
7 backdropClassName?: string;
8 scroll?: boolean;
9 placement?: OffcanvasPlacement;
10 responsive?: 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | string;
11 renderStaticNode?: boolean;
12}
13declare const _default: BsPrefixRefForwardingComponent<"div", OffcanvasProps> & {
14 Body: BsPrefixRefForwardingComponent<"div", import("./OffcanvasBody").OffcanvasBodyProps>;
15 Header: React.ForwardRefExoticComponent<import("./OffcanvasHeader").OffcanvasHeaderProps & React.RefAttributes<HTMLDivElement>>;
16 Title: BsPrefixRefForwardingComponent<"div", import("./OffcanvasTitle").OffcanvasTitleProps>;
17};
18export default _default;