🏷️ Message component interface file added
This commit is contained in:
parent
b8458d6c2f
commit
54eb389c57
32
src/components/message/IVMessage.type.ts
Normal file
32
src/components/message/IVMessage.type.ts
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user