diff --git a/src/components/tabpanel/TabPanel.d.ts b/src/components/tabpanel/TabPanel.d.ts index f1bab58a9..6bb588588 100755 --- a/src/components/tabpanel/TabPanel.d.ts +++ b/src/components/tabpanel/TabPanel.d.ts @@ -1,15 +1,42 @@ import { VNode } from 'vue'; +import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; -interface TabPanelProps { - header?: any; - disabled?: boolean; +export interface TabPanelProps { + /** + * Orientation of tab headers. + */ + header?: string | undefined; + /** + * Whether the tab is disabled. + */ + disabled?: boolean | undefined; } -declare class TabPanel { - $props: TabPanelProps; - $slots: { - '': VNode[]; +export interface TabPanelSlots { + /** + * Custom content template. + */ + default: () => VNode[]; +} + +export declare type TabPanelEmits = { +} + +declare class TabPanel extends ClassComponent { } + +declare module '@vue/runtime-core' { + interface GlobalComponents { + TabPanel: GlobalComponentConstructor } } +/** + * + * TabPanel is a helper component for TabView component. + * + * Demos: + * + * - [TabPanel](https://www.primefaces.org/primevue/showcase/#/tabpanel) + * + */ export default TabPanel;