UNPKG

@hackplan/polaris

Version:

Shopify’s product component library

28 lines (27 loc) 787 B
import React from 'react'; export declare const BOTTOM_CLASS_NAMES: { enter: string; enterActive: string; exit: string; exitActive: string; }; export declare const RIGHT_CLASS_NAMES: { enter: string; enterActive: string; exit: string; exitActive: string; }; export interface Props { /** Whether or not the sheet is open */ open: boolean; /** The child elements to render in the sheet */ children: React.ReactNode; /** Callback when the backdrop is clicked or `ESC` is pressed */ onClose(): void; } export interface State { mobile: boolean; } export declare function Sheet({ children, open, onClose }: Props): JSX.Element | null; declare const _default: React.ComponentClass<Props, any> & typeof Sheet; export default _default;