UNPKG

primeng

Version:

PrimeNG is an open source UI library for Angular featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeB

98 lines (95 loc) 3.16 kB
import { MotionOptions } from '@primeuix/motion'; import { PassThroughOption, PassThrough } from 'primeng/api'; /** * Defines valid pass-through options in Accordion component. * @template I Type of instance. * * @group Interface */ interface AccordionPassThroughOptions<I = unknown> { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption<HTMLElement, I>; /** * Used to pass options to the motion component/directive. */ motion?: MotionOptions; } /** * Defines valid pass-through options in Accordion component. * @see {@link AccordionPassThroughOptions} * * @template I Type of instance. */ type AccordionPassThrough<I = unknown> = PassThrough<I, AccordionPassThroughOptions<I>>; /** * Defines valid pass-through options in AccordionPanel component. * @template I Type of instance. * * @group Interface */ interface AccordionPanelPassThroughOptions<I = unknown> { /** * Used to pass attributes to the panel's DOM element. */ root?: PassThroughOption<HTMLElement, I>; } /** * Defines valid pass-through options in AccordionPanel component. * @see {@link AccordionPanelPassThroughOptions} * * @template I Type of instance. */ type AccordionPanelPassThrough<I = unknown> = PassThrough<I, AccordionPanelPassThroughOptions<I>>; /** * Defines valid pass-through options in AccordionHeader component. * @template I Type of instance. * * @group Interface */ interface AccordionHeaderPassThroughOptions<I = unknown> { /** * Used to pass attributes to the header's DOM element. */ root?: PassThroughOption<HTMLElement, I>; /** * Used to pass attributes to the toggle icon's DOM element. */ toggleicon?: PassThroughOption<SVGElement, I>; } /** * Defines valid pass-through options in AccordionHeader component. * @see {@link AccordionHeaderPassThroughOptions} * * @template I Type of instance. */ type AccordionHeaderPassThrough<I = unknown> = PassThrough<I, AccordionHeaderPassThroughOptions<I>>; /** * Defines valid pass-through options in AccordionContent component. * @template I Type of instance. * * @group Interface */ interface AccordionContentPassThroughOptions<I = unknown> { /** * Used to pass attributes to the content container's DOM element. */ root?: PassThroughOption<HTMLElement, I>; /** * Used to pass attributes to the content wrapper DOM element. */ contentWrapper?: PassThroughOption<HTMLDivElement, I>; /** * Used to pass attributes to the content's DOM element. */ content?: PassThroughOption<HTMLDivElement, I>; } /** * Defines valid pass-through options in AccordionContent component. * @see {@link AccordionContentPassThroughOptions} * * @template I Type of instance. */ type AccordionContentPassThrough<I = unknown> = PassThrough<I, AccordionContentPassThroughOptions<I>>; export type { AccordionContentPassThrough, AccordionContentPassThroughOptions, AccordionHeaderPassThrough, AccordionHeaderPassThroughOptions, AccordionPanelPassThrough, AccordionPanelPassThroughOptions, AccordionPassThrough, AccordionPassThroughOptions };