UNPKG

legion-vue-core

Version:

71 lines (70 loc) 1.44 kB
export type ItemProps = { /** * Sets the disabled of the Accordion */ disabled?: boolean; /** * Sets the icon left of the Accordion */ iconLeft?: any; /** * Sets the title of the Accordion */ title: any; /** * Sets the description of the Accordion */ description: any; }; export type AccordionItemProps = { /** * Sets the id of the Accordion */ id: string; /** * Sets the index of the Accordion */ index: number; /** * Sets the item of the Accordion */ item: ItemProps; /** * Sets the state of the Accordion */ isActive: boolean; /** * Sets the onClick event of the Accordion */ onClick: () => void; /** * Sets the toggleIcon of the Accordion */ iconToggle?: any; }; export interface AccordionProps { /** * set item is collapse of the component */ active?: number[]; /** * set id of the component */ id?: string; /** * set items [{ title: any, description: any }] of the component */ items: ItemProps[]; /** * set items is multiple of the component */ multiple?: boolean; /** * set onClick event of the component that will return index of the item */ onClick?: (index: number) => void; /** * Sets the toggleIcon of the Accordion */ iconToggle?: any; }