2021-05-12 09:35:29 +00:00
|
|
|
const AvatarProps = [
|
|
|
|
{
|
|
|
|
name: "label",
|
|
|
|
type: "string",
|
|
|
|
default: "null",
|
|
|
|
description: "Defines the text to display."
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "icon",
|
|
|
|
type: "string",
|
|
|
|
default: "null",
|
|
|
|
description: "Defines the icon to display."
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "image",
|
|
|
|
type: "string",
|
|
|
|
default: "null",
|
|
|
|
description: "Defines the image to display."
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "size",
|
|
|
|
type: "string",
|
|
|
|
default: "null",
|
|
|
|
description: 'Size of the element, valid options are "large" and "xlarge".'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "shape",
|
|
|
|
type: "string",
|
|
|
|
default: "square",
|
|
|
|
description: 'Shape of the element, valid options are "square" and "circle".'
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
2022-06-14 14:13:53 +00:00
|
|
|
const AvatarEvents = [
|
|
|
|
{
|
|
|
|
name: "error",
|
|
|
|
description: "Triggered when an error occurs while loading an image file."
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
2021-05-12 09:35:29 +00:00
|
|
|
module.exports = {
|
|
|
|
avatar: {
|
|
|
|
name: "Avatar",
|
|
|
|
description: "Avatar represents people using icons, labels and images.",
|
2022-06-14 14:13:53 +00:00
|
|
|
props: AvatarProps,
|
|
|
|
events: AvatarEvents
|
2021-05-12 09:35:29 +00:00
|
|
|
}
|
|
|
|
};
|