2022-09-12 07:13:52 +00:00
|
|
|
const BadgeProps = [
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'value',
|
2023-03-07 07:32:19 +00:00
|
|
|
type: 'string | number',
|
2022-09-14 14:26:41 +00:00
|
|
|
default: 'null',
|
|
|
|
description: 'Value to display inside the badge.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'severity',
|
|
|
|
type: 'string',
|
|
|
|
default: 'null',
|
|
|
|
description: 'Severity type of the badge.'
|
2022-09-12 07:13:52 +00:00
|
|
|
},
|
|
|
|
{
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'size',
|
|
|
|
type: 'string',
|
|
|
|
default: 'null',
|
2022-09-12 07:13:52 +00:00
|
|
|
description: 'Size of the badge, valid options are "large" and "xlarge".'
|
2023-04-21 13:22:04 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
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.'
|
2022-09-12 07:13:52 +00:00
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
badge: {
|
2022-09-14 14:26:41 +00:00
|
|
|
name: 'Badge',
|
|
|
|
description: 'Badge is a small status indicator for another element.',
|
2022-09-12 07:13:52 +00:00
|
|
|
props: BadgeProps
|
|
|
|
}
|
|
|
|
};
|