primevue-mirror/api-generator/components/card.js

47 lines
1.0 KiB
JavaScript
Raw Normal View History

2023-07-06 13:20:37 +00:00
const CardProps = [
{
name: 'pt',
type: 'any',
default: 'null',
2023-08-01 14:01:12 +00:00
description: 'Used to pass attributes to DOM elements inside the component.'
2023-07-06 13:20:37 +00:00
},
{
name: 'unstyled',
type: 'boolean',
default: 'false',
description: 'When enabled, it removes component related styles in the core.'
}
];
const CardSlots = [
{
2022-09-14 14:26:41 +00:00
name: 'header',
description: 'Custom content for the component header.'
},
{
2022-09-14 14:26:41 +00:00
name: 'title',
description: 'Custom content for the component title.'
},
{
2022-09-14 14:26:41 +00:00
name: 'subtitle',
description: 'Custom content for the component subtitle.'
},
{
2022-09-14 14:26:41 +00:00
name: 'content',
description: 'Custom content for the component content.'
},
{
2022-09-14 14:26:41 +00:00
name: 'footer',
description: 'Custom content for the component footer.'
}
];
module.exports = {
card: {
2022-09-14 14:26:41 +00:00
name: 'Card',
description: 'Card is a flexible container component.',
2023-07-06 13:20:37 +00:00
props: CardProps,
slots: CardSlots
}
};