2023-07-06 13:20:37 +00:00
|
|
|
const CardProps = [
|
|
|
|
{
|
|
|
|
name: 'pt',
|
|
|
|
type: 'any',
|
|
|
|
default: 'null',
|
|
|
|
description: 'Uses to pass attributes to DOM elements inside the component.'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'unstyled',
|
|
|
|
type: 'boolean',
|
|
|
|
default: 'false',
|
|
|
|
description: 'When enabled, it removes component related styles in the core.'
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
2022-09-12 07:13:52 +00:00
|
|
|
const CardSlots = [
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'header',
|
|
|
|
description: 'Custom content for the component header.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'title',
|
|
|
|
description: 'Custom content for the component title.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'subtitle',
|
|
|
|
description: 'Custom content for the component subtitle.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'content',
|
|
|
|
description: 'Custom content for the component content.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'footer',
|
|
|
|
description: 'Custom content for the component footer.'
|
2022-09-12 07:13:52 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
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,
|
2022-09-12 07:13:52 +00:00
|
|
|
slots: CardSlots
|
|
|
|
}
|
|
|
|
};
|