@vonage/vivid-react
Version:
Vivid wrapped for easy React usage & IDE autocomplete support & typescript typings
31 lines (30 loc) • 1.39 kB
TypeScript
import React, { ReactNode, SyntheticEvent } from 'react';
/** VwcAccordion
* For more info on this Vivid element please visit https://vivid.deno.dev/components/accordion
* @param {AccordionExpandMode} expandmode - Controls the expand mode of the Accordion, either allowing
single or multiple item expansion. **attribute** `expand-mode`
* @param {string | null} activeid
* @param {number} activeItemIndex
* @param {Array<string | null>} accordionIds
* @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 VwcAccordion: {
(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;
expandmode?: any;
activeid?: string | null | undefined;
activeItemIndex?: number | undefined;
accordionIds?: any;
VIVID_VERSION?: string | undefined;
componentName?: string | undefined;
}): JSX.Element;
displayName: string;
};
export default VwcAccordion;