@vonage/vivid-react
Version:
Vivid wrapped for easy React usage & IDE autocomplete support & typescript typings
40 lines (39 loc) • 2.17 kB
TypeScript
import React, { ReactNode, SyntheticEvent } from 'react';
/** VwcTab
* For more info on this Vivid element please visit https://vivid.deno.dev/components/tab
* @param {boolean} disabled - When true, the control will be immutable by user interaction. See https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled | disabled HTML attribute for more information. **attribute** `disabled`
* @param {TabConnotation | undefined} connotation - The connotation the tab should have. **attribute** `connotation`
* @param {TabShape | undefined} shape - The shape the tab should have. **attribute** `shape`
* @param {string | undefined} label - Indicates the tab's label. **attribute** `label`
* @param {boolean} removable - Adds a close button **attribute** `removable`
* @param {number} tabIndex **attribute** `tabIndex`
* @param {'host'} _vividAriaBehaviour
* @param {boolean} iconTrailing - Indicates the icon affix alignment. **attribute** `icon-trailing`
* @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 VwcTab: {
(props: {
children?: ReactNode;
slot?: string | undefined;
id?: string | undefined;
style?: React.CSSProperties | undefined;
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
onClick?: ((event: SyntheticEvent) => void) | undefined;
disabled?: boolean | undefined;
connotation?: any;
shape?: any;
label?: string | undefined;
removable?: boolean | undefined;
tabIndex?: number | undefined;
_vividAriaBehaviour?: any;
iconTrailing?: boolean | undefined;
icon?: string | undefined;
VIVID_VERSION?: string | undefined;
componentName?: string | undefined;
}): JSX.Element;
displayName: string;
};
export default VwcTab;