primevue-mirror/components/card/Card.d.ts

49 lines
934 B
TypeScript
Raw Normal View History

2022-09-06 12:03:37 +00:00
import { VNode } from 'vue';
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
2022-09-14 11:26:01 +00:00
export interface CardProps {}
2022-09-06 12:03:37 +00:00
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[];
}
2022-09-14 11:26:01 +00:00
export declare type CardEmits = {};
2022-09-06 12:03:37 +00:00
2022-09-14 11:26:01 +00:00
declare class Card extends ClassComponent<CardProps, CardSlots, CardEmits> {}
2022-09-06 12:03:37 +00:00
declare module '@vue/runtime-core' {
interface GlobalComponents {
2022-09-14 11:26:01 +00:00
Card: GlobalComponentConstructor<Card>;
2022-09-06 12:03:37 +00:00
}
}
/**
*
* Card is a flexible container component.
*
* Demos:
*
2022-09-14 11:26:01 +00:00
* - [Card](https://www.primefaces.org/primevue/card)
2022-09-06 12:03:37 +00:00
*
*/
export default Card;