diff --git a/src/components/card/Card.d.ts b/src/components/card/Card.d.ts index df2e8f13b..eaa6f573a 100755 --- a/src/components/card/Card.d.ts +++ b/src/components/card/Card.d.ts @@ -1,16 +1,50 @@ import { VNode } from 'vue'; +import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; -interface CardProps {} +export interface CardProps { +} -declare class Card { - $props: CardProps; - $slots: { - header: VNode[]; - title: VNode[]; - subtitle: VNode[]; - content: VNode[]; - footer: VNode[]; +export interface CardSlots { + /** + * Custom header template. + */ + header: () => VNode[]; + /** + * Custom title template. + */ + title: () => VNode[]; + /** + * Custom subtitle template. + */ + subtitle: () => VNode[]; + /** + * Custom content template. + */ + content: () => VNode[]; + /** + * Custom footer template. + */ + footer: () => VNode[]; +} + +export declare type CardEmits = { +} + +declare class Card extends ClassComponent { } + +declare module '@vue/runtime-core' { + interface GlobalComponents { + Card: GlobalComponentConstructor } } +/** + * + * Card is a flexible container component. + * + * Demos: + * + * - [Card](https://www.primefaces.org/primevue/showcase/#/card) + * + */ export default Card;