UNPKG

@vonage/vivid-react

Version:

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

31 lines (30 loc) 1.33 kB
import React, { ReactNode } from 'react'; import '@vonage/vwc-popup'; /** Popup are used to display a message or notification to the user and are displayed on top of all other web page elements. Popup's goal is to provide additional, helpful content. To trigger the Popup, it should be paired with an anchor (e.g., a button). * @param {CSSResult} styles * @param {boolean} open attribute: &lt;VwcPopup open /> * @param {string} anchor attribute: &lt;VwcPopup anchor /> * @param {boolean | undefined} dismissible attribute: &lt;VwcPopup dismissible /> * @param {Placement} corner attribute: &lt;VwcPopup corner /> * @param {Strategy} strategy attribute: &lt;VwcPopup strategy /> * @param {boolean | undefined} arrow attribute: &lt;VwcPopup arrow /> * @param {boolean | undefined} alternate attribute: &lt;VwcPopup alternate /> */ declare const VwcPopup: (props: { children?: ReactNode; slot?: string | undefined; id?: string | undefined; style?: React.CSSProperties | undefined; ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined; styles?: any; open?: boolean | undefined; anchor?: string | undefined; dismissible?: any; corner?: any; strategy?: any; arrow?: any; alternate?: any; }) => JSX.Element; export default VwcPopup;