diff --git a/src/components/message/IVMessage.type.ts b/src/components/message/IVMessage.type.ts new file mode 100644 index 0000000..d58e2ce --- /dev/null +++ b/src/components/message/IVMessage.type.ts @@ -0,0 +1,32 @@ +/** + * Interface representing the structure of a message notice component. + */ +export default interface INotice { + /** + * The title or main text of the notice. + */ + title: string; + + /** + * Determines whether an icon should be displayed alongside the notice. + * @default false + */ + icon?: boolean; + + /** + * The type of notice, which affects its visual style and semantics. + * - `info`: Informational message + * - `warning`: Warning message + * - `alert`: Error or critical alert + * - `success`: Confirmation or success message + * - `active`: Ongoing or active status + * - undefined: No specific type + */ + type?: 'info' | 'warning' | 'alert' | 'success' | 'active' | undefined; + + /** + * If true, the notice can be closed by the user. + * @default false + */ + closable?: boolean; +}