primevue-mirror/components/inlinemessage/InlineMessage.d.ts

42 lines
1.1 KiB
TypeScript
Raw Normal View History

2022-09-06 12:03:37 +00:00
import { VNode } from 'vue';
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
type InlineMessageSeverityType = 'success' | 'info' | 'warn' | 'error' | undefined;
export interface InlineMessageProps {
/**
* Severity level of the message.
* @see InlineMessageSeverityType
* Default value is 'info'.
*/
severity?: InlineMessageSeverityType;
}
export interface InlineMessageSlots {
/**
* Default custom slot.
*/
default: () => VNode[];
}
2022-09-14 11:26:01 +00:00
export declare type InlineMessageEmits = {};
2022-09-06 12:03:37 +00:00
2022-09-14 11:26:01 +00:00
declare class InlineMessage extends ClassComponent<InlineMessageProps, InlineMessageSlots, InlineMessageEmits> {}
2022-09-06 12:03:37 +00:00
declare module '@vue/runtime-core' {
interface GlobalComponents {
2022-09-14 11:26:01 +00:00
InlineMessage: GlobalComponentConstructor<InlineMessage>;
2022-09-06 12:03:37 +00:00
}
}
/**
*
* InlineMessage component is useful in cases where a single message needs to be displayed related to an element such as forms. It has one property, severity of the message.
*
* Demos:
*
2022-09-14 11:26:01 +00:00
* - [InlineMessage](https://www.primefaces.org/primevue/message)
2022-09-06 12:03:37 +00:00
*
*/
export default InlineMessage;