UNPKG

soda-material

Version:

A component library that may follow [material design 3](https://m3.material.io/components) (a.k.a. material you)

20 lines (19 loc) 648 B
/// <reference types="react" /> import './sheet.scss'; import { ExtendProps } from '@/utils/type'; /** * This component do not have ref forwarded * @specs https://m3.material.io/components/side-sheets/specs */ export declare function SideSheet({ header, action, children, position, open, onScrimClick, portalTo, className, style, }: ExtendProps<{ header?: React.ReactNode; action?: React.ReactNode; children?: React.ReactNode; /** * @default left */ position?: 'left' | 'right'; open?: boolean; onScrimClick?(): void; portalTo?: Element | DocumentFragment; }>): import("react/jsx-runtime").JSX.Element;