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

69 lines
1.3 KiB
TypeScript
Raw Normal View History

2023-02-28 14:44:35 +00:00
/**
*
* Card is a flexible container component.
*
* [Live Demo](https://www.primevue.org/card/)
*
* @module card
*
*/
2022-09-06 12:03:37 +00:00
import { VNode } from 'vue';
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
2023-03-03 14:16:05 +00:00
/**
* Defines valid properties in Card component.
*/
2022-09-14 11:26:01 +00:00
export interface CardProps {}
2022-09-06 12:03:37 +00:00
2023-03-03 14:16:05 +00:00
/**
* Defines valid slots in Card component.
*/
2022-09-06 12:03:37 +00:00
export interface CardSlots {
/**
* Custom header template.
*/
2023-02-28 14:44:35 +00:00
header(): VNode[];
2022-09-06 12:03:37 +00:00
/**
* Custom title template.
*/
2023-02-28 14:44:35 +00:00
title(): VNode[];
2022-09-06 12:03:37 +00:00
/**
* Custom subtitle template.
*/
2023-02-28 14:44:35 +00:00
subtitle(): VNode[];
2022-09-06 12:03:37 +00:00
/**
* Custom content template.
*/
2023-02-28 14:44:35 +00:00
content(): VNode[];
2022-09-06 12:03:37 +00:00
/**
* Custom footer template.
*/
2023-02-28 14:44:35 +00:00
footer(): VNode[];
2022-09-06 12:03:37 +00:00
}
2023-02-28 14:44:35 +00:00
/**
2023-03-03 14:16:05 +00:00
* Defines valid emits in Card component.
2023-02-28 14:44:35 +00:00
*/
2023-03-03 14:16:05 +00:00
export interface CardEmits {}
2022-09-06 12:03:37 +00:00
2023-02-28 14:44:35 +00:00
/**
* **PrimeVue - Card**
*
* _Card is a flexible container component._
*
* [Live Demo](https://www.primevue.org/card/)
* --- ---
2023-03-03 10:55:20 +00:00
* ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
2023-02-28 14:44:35 +00:00
*
* @group Component
*/
2023-03-01 12:30:54 +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
}
}
export default Card;