@vonage/vivid-react
Version:
Vivid wrapped for easy React usage & IDE autocomplete support & typescript typings
38 lines (37 loc) • 1.74 kB
TypeScript
import React, { ReactNode } from 'react';
/** VwcBanner
* For more info on this Vivid element please visit https://vivid.deno.dev/components/banner
* @param {| string
| null} dismissButtonAriaLabel **attribute** `dismiss-aria-label`
* @param {string | undefined} actionHref **attribute** `action-href`
* @param {string | undefined} actionText **attribute** `action-text`
* @param {boolean} removable **attribute** `removable`
* @param {string | undefined} text **attribute** `text`
* @param {BannerConnotation | undefined} connotation **attribute** `connotation`
* @param {string | undefined} icon - A decorative icon the custom element should have. **attribute** `icon`
* @param {'delegate'} _vividAriaBehaviour
* @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 VwcBanner: {
(props: {
children?: ReactNode;
slot?: string | undefined;
id?: string | undefined;
style?: React.CSSProperties | undefined;
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
dismissButtonAriaLabel?: any;
actionHref?: string | undefined;
actionText?: string | undefined;
removable?: boolean | undefined;
text?: string | undefined;
connotation?: any;
icon?: string | undefined;
_vividAriaBehaviour?: any;
VIVID_VERSION?: string | undefined;
componentName?: string | undefined;
}): JSX.Element;
displayName: string;
};
export default VwcBanner;