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

120 lines (117 loc) 3.6 kB
import { PassThroughOption, PassThrough } from 'primeng/api'; /** * Defines valid pass-through options in Tabs component. * @template I Type of instance. * * @group Interface */ interface TabsPassThroughOptions<I = unknown> { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption<HTMLElement, I>; } /** * Defines valid pass-through options in Tabs component. * @see {@link TabsPassThroughOptions} * * @template I Type of instance. */ type TabsPassThrough<I = unknown> = PassThrough<I, TabsPassThroughOptions<I>>; /** * Defines valid pass-through options in TabList component. * @template I Type of instance. * * @group Interface */ interface TabListPassThroughOptions<I = unknown> { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption<HTMLElement, I>; /** * Used to pass attributes to the previous button's DOM element. */ prevButton?: PassThroughOption<HTMLButtonElement, I>; /** * Used to pass attributes to the content's DOM element. */ content?: PassThroughOption<HTMLDivElement, I>; /** * Used to pass attributes to the tab list's DOM element. */ tabList?: PassThroughOption<HTMLDivElement, I>; /** * Used to pass attributes to the active bar's DOM element. */ activeBar?: PassThroughOption<HTMLSpanElement, I>; /** * Used to pass attributes to the next button's DOM element. */ nextButton?: PassThroughOption<HTMLButtonElement, I>; } /** * Defines valid pass-through options in TabList component. * @see {@link TabListPassThroughOptions} * * @template I Type of instance. */ type TabListPassThrough<I = unknown> = PassThrough<I, TabListPassThroughOptions<I>>; /** * Defines valid pass-through options in Tab component. * @template I Type of instance. * * @group Interface */ interface TabPassThroughOptions<I = unknown> { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption<HTMLElement, I>; } /** * Defines valid pass-through options in Tab component. * @see {@link TabPassThroughOptions} * * @template I Type of instance. */ type TabPassThrough<I = unknown> = PassThrough<I, TabPassThroughOptions<I>>; /** * Defines valid pass-through options in TabPanel component. * @template I Type of instance. * * @group Interface */ interface TabPanelPassThroughOptions<I = unknown> { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption<HTMLElement, I>; } /** * Defines valid pass-through options in TabPanel component. * @see {@link TabPanelPassThroughOptions} * * @template I Type of instance. */ type TabPanelPassThrough<I = unknown> = PassThrough<I, TabPanelPassThroughOptions<I>>; /** * Defines valid pass-through options in TabPanels component. * @template I Type of instance. * * @group Interface */ interface TabPanelsPassThroughOptions<I = unknown> { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption<HTMLElement, I>; } /** * Defines valid pass-through options in TabPanels component. * @see {@link TabPanelsPassThroughOptions} * * @template I Type of instance. */ type TabPanelsPassThrough<I = unknown> = PassThrough<I, TabPanelsPassThroughOptions<I>>; export type { TabListPassThrough, TabListPassThroughOptions, TabPanelPassThrough, TabPanelPassThroughOptions, TabPanelsPassThrough, TabPanelsPassThroughOptions, TabPassThrough, TabPassThroughOptions, TabsPassThrough, TabsPassThroughOptions };