UNPKG

@vonage/vivid-react

Version:

Vivid wrapped for easy React usage & IDE autocomplete support & typescript typings

32 lines (31 loc) 1.6 kB
import React, { ReactNode, SyntheticEvent } from 'react'; /** VwcSideDrawer * For more info on this Vivid element please visit https://vivid.deno.dev/components/side-drawer * @param {boolean} alternate - applies scheme alternate region **attribute** `alternate` * @param {boolean} modal - sets the side drawer's type to modal **attribute** `modal` * @param {boolean} open - indicates whether the side drawer is open **attribute** `open` * @param {boolean} trailing - sets the side of the side drawer **attribute** `trailing` * @param {string} VIVID_VERSION - The current version of the Vivid library, which is useful for debugging. It can be accessed from any Vivid element via `<el>.constructor.VIVID_VERSION`. * @param {string} componentName - Core component name, without prefix */ declare const VwcSideDrawer: { (props: { children?: ReactNode; slot?: string | undefined; id?: string | undefined; style?: React.CSSProperties | undefined; ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined; onClose?: ((event: SyntheticEvent) => void) | undefined; onOpen?: ((event: SyntheticEvent) => void) | undefined; onCancel?: ((event: SyntheticEvent) => void) | undefined; alternate?: boolean | undefined; modal?: boolean | undefined; open?: boolean | undefined; trailing?: boolean | undefined; VIVID_VERSION?: string | undefined; componentName?: string | undefined; }): JSX.Element; displayName: string; }; export default VwcSideDrawer;