@vonage/vivid-react
Version:
Vivid wrapped for easy React usage & IDE autocomplete support & typescript typings
40 lines (39 loc) • 2.13 kB
TypeScript
import React, { ReactNode, SyntheticEvent } from 'react';
/** VwcAccordionItem
* For more info on this Vivid element please visit https://vivid.deno.dev/components/accordion-item
* @param {1 | 2 | 3 | 4 | 5 | 6} headinglevel - Configures the https://www.w3.org/TR/wai-aria-1.1/#aria-level | level of the
heading element. **attribute** `heading-level`
* @param {boolean} expanded - Expands or collapses the item. **attribute** `expanded`
* @param {string} id - The item ID **attribute** `id`
* @param {string | undefined} heading **attribute** `heading`
* @param {boolean} noIndicator - Indicates whether the accordion-item has indicator **attribute** `no-indicator`
* @param {string | undefined} meta **attribute** `meta`
* @param {AccordionItemSize | undefined} size - The size the accordion-item should have. **attribute** `size`
* @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 VwcAccordionItem: {
(props: {
children?: ReactNode;
slot?: string | undefined;
id?: string | undefined;
style?: React.CSSProperties | undefined;
ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
onChange?: ((event: SyntheticEvent) => void) | undefined;
headinglevel?: any;
expanded?: boolean | undefined;
heading?: string | undefined;
noIndicator?: boolean | undefined;
meta?: string | undefined;
size?: any;
iconTrailing?: boolean | undefined;
icon?: string | undefined;
VIVID_VERSION?: string | undefined;
componentName?: string | undefined;
}): JSX.Element;
displayName: string;
};
export default VwcAccordionItem;