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

56 lines
1.2 KiB
JavaScript

const ChipProps = [
{
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: "removable",
type: "boolean",
default: "false",
description: "Whether to display a remove icon."
},
{
name: "removeIconClass",
type: "string",
default: "pi pi-times-circle",
description: "Icon of the remove element."
}
];
const ChipEvents = [
{
name: "remove",
description: "Callback to invoke when a chip is removed.",
arguments: [
{
name: "event",
type: "object",
description: "Browser event"
}
]
}
];
module.exports = {
chip: {
name: "Chip",
description: "Chip represents entities using icons, labels and images",
props: ChipProps,
events: ChipEvents
}
};