1
0
Fork 0
mirror of https://github.com/primefaces/primevue.git synced 2025-05-09 08:52:34 +00:00
primevue-mirror/packages/primevue/scripts/components/inlinemessage.js
2024-06-11 13:21:12 +01:00

43 lines
1.2 KiB
JavaScript

const InlineMessageProps = [
{
name: 'severity',
type: 'string',
default: 'error',
description: 'Severity level of the message. Valid severities are "success", "info", "warn", "error", "secondary" and "contrast".'
},
{
name: 'icon',
type: 'string',
default: 'undefined',
description: 'Display a custom icon for the message.'
},
{
name: 'pt',
type: 'any',
default: 'null',
description: 'Used 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.'
}
];
const MessageSlots = [
{
name: 'icon',
description: 'Custom icon template.'
}
];
module.exports = {
inlinemessage: {
name: 'InlineMessage',
description: 'InlineMessage component is useful in cases where a single message needs to be displayed related to an element such as forms',
'doc-url': 'message',
props: InlineMessageProps,
slots: MessageSlots
}
};