@vonage/vivid-react
Version:
Vivid wrapped for easy React usage & IDE autocomplete support & typescript typings
43 lines (42 loc) • 2.3 kB
TypeScript
import React, { ReactNode, SyntheticEvent } from 'react';
/** VwcTag
* For more info on this Vivid element please visit https://vivid.deno.dev/components/tag
* @param {TagConnotation | undefined} connotation - The connotation the tag should have. **attribute** `connotation`
* @param {TagShape | undefined} shape - The shape the tag should have. **attribute** `shape`
* @param {TagAppearance | undefined} appearance - The appearance the tag should have. **attribute** `appearance`
* @param {string | undefined} label - Indicates the tag's label. **attribute** `label`
* @param {boolean} removable - indicates whether the tag is removable **attribute** `removable`
* @param {boolean} disabled - indicates whether the tag is disabled **attribute** `disabled`
* @param {boolean} selectable - indicates whether the tag is selectable **attribute** `selectable`
* @param {boolean} selected - indicates whether the tag is selected **attribute** `selected`
* @param {'delegate'} _vividAriaBehaviour
* @param {string | undefined} icon - A decorative icon the custom element should have. **attribute** `icon`
* @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 VwcTag: {
(props: {
children?: ReactNode;
slot?: string | undefined;
id?: string | undefined;
style?: React.CSSProperties | undefined;
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
onSelectedChange?: ((event: SyntheticEvent) => void) | undefined;
onRemoved?: ((event: SyntheticEvent) => void) | undefined;
connotation?: any;
shape?: any;
appearance?: any;
label?: string | undefined;
removable?: boolean | undefined;
disabled?: boolean | undefined;
selectable?: boolean | undefined;
selected?: boolean | undefined;
_vividAriaBehaviour?: any;
icon?: string | undefined;
VIVID_VERSION?: string | undefined;
componentName?: string | undefined;
}): JSX.Element;
displayName: string;
};
export default VwcTag;