UNPKG

@vonage/vivid-react

Version:

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

35 lines (34 loc) 1.98 kB
import React, { ReactNode, SyntheticEvent } from 'react'; /** VwcTreeItem * For more info on this Vivid element please visit https://vivid.deno.dev/components/tree-item * @param {string | undefined} text - Indicates the text's text. **attribute** `text` * @param {boolean} expanded - When true, the control will be appear expanded by user interaction. **attribute** `expanded` * @param {boolean} selected - When true, the control will appear selected by user interaction. **attribute** `selected` * @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 {'host'} _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 VwcTreeItem: { (props: { children?: ReactNode; slot?: string | undefined; id?: string | undefined; style?: React.CSSProperties | undefined; ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined; onExpandedChange?: ((event: SyntheticEvent) => void) | undefined; onSelectedChange?: ((event: SyntheticEvent) => void) | undefined; text?: string | undefined; expanded?: boolean | undefined; selected?: boolean | undefined; disabled?: boolean | undefined; _vividAriaBehaviour?: any; icon?: string | undefined; VIVID_VERSION?: string | undefined; componentName?: string | undefined; }): JSX.Element; displayName: string; }; export default VwcTreeItem;