/** * * AccordionPanel is a helper component for Accordion component. * * [Live Demo](https://www.primevue.org/accordion/) * * @module accordionpanel * */ import { VNode } from 'vue'; import { ComponentHooks } from '../basecomponent'; import { PassThroughOptions } from '../passthrough'; import { ClassComponent, DesignToken, GlobalComponentConstructor, PassThrough } from '../ts-helpers'; export declare type AccordionPanelPassThroughOptionType = AccordionPanelPassThroughAttributes | ((options: AccordionPanelPassThroughMethodOptions) => AccordionPanelPassThroughAttributes | string) | string | null | undefined; /** * Custom passthrough(pt) option method. */ export interface AccordionPanelPassThroughMethodOptions { /** * Defines instance. */ instance: any; /** * Defines valid properties. */ props: AccordionPanelProps; /** * Defines current options. */ context: AccordionPanelContext; /** * Defines valid attributes. */ attrs: any; /** * Defines parent options. */ parent: any; /** * Defines passthrough(pt) options in global config. */ global: object | undefined; } /** * Custom passthrough(pt) options. * @see {@link AccordionPanelProps.pt} */ export interface AccordionPanelPassThroughOptions { /** * Used to pass attributes to the root's DOM element. */ root?: AccordionPanelPassThroughOptionType; /** * Used to manage all lifecycle hooks. * @see {@link BaseComponent.ComponentHooks} */ hooks?: ComponentHooks; } export interface AccordionPanelPassThroughAttributes { [key: string]: any; } /** * Defines valid properties in AccordionPanel component. */ export interface AccordionPanelProps { /** * Unique value of item. */ value: string; /** * Whether the item is disabled. * @defaultValue false */ disabled?: boolean | undefined; /** * Use to change the HTML tag of root element. * @defaultValue DIV */ as?: string | undefined; /** * When enabled, it changes the default rendered element for the one passed as a child element. * @defaultValue false */ asChild?: boolean | undefined; /** * It generates scoped CSS variables using design tokens for the component. */ dt?: DesignToken; /** * Used to pass attributes to DOM elements inside the component. * @type {AccordionPanelPassThroughOptions} */ pt?: PassThrough; /** * Used to configure passthrough(pt) options of the component. * @type {PassThroughOptions} */ ptOptions?: PassThroughOptions; } /** * Defines current options in AccordionPanel component. */ export interface AccordionPanelContext { [key: string]: any; } /** * Defines valid slots in AccordionPanel slots. */ export interface AccordionPanelSlots { /** * Custom content template. */ default(): VNode[]; } export interface AccordionPanelEmits {} /** * **PrimeVue - AccordionPanel** * * _AccordionPanel is a helper component for Accordion component._ * * [Live Demo](https://www.primevue.org/accordion/) * --- --- * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png) * * @group Component * */ declare class AccordionPanel extends ClassComponent {} declare module 'vue' { export interface GlobalComponents { AccordionPanel: GlobalComponentConstructor; } } export default AccordionPanel;