🏷️ Message component interface file added

This commit is contained in:
Paul Valerie GOMA 2025-07-24 00:14:16 +02:00
parent b8458d6c2f
commit 54eb389c57

View File

@ -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;
}