From 54eb389c579ed641dc453ba2297b48b9fddfbd20 Mon Sep 17 00:00:00 2001 From: Paul Valerie GOMA Date: Thu, 24 Jul 2025 00:14:16 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=B7=EF=B8=8F=20=20Message=20component?= =?UTF-8?q?=20interface=20file=20added?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/message/IVMessage.type.ts | 32 ++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/components/message/IVMessage.type.ts 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; +}