From a1c9f23840e1db4725309d6ca97a94eaf67b8d3f Mon Sep 17 00:00:00 2001 From: Paul Valerie GOMA Date: Mon, 21 Jul 2025 21:43:23 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=B7=EF=B8=8F=20=20=20Added=20Hint=20co?= =?UTF-8?q?mponent=20interface?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/hint/IVHint.type.ts | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/components/hint/IVHint.type.ts diff --git a/src/components/hint/IVHint.type.ts b/src/components/hint/IVHint.type.ts new file mode 100644 index 0000000..1cfd440 --- /dev/null +++ b/src/components/hint/IVHint.type.ts @@ -0,0 +1,28 @@ +/** + * Interface representing the properties of the Hint component. + */ +export default interface IVHint { + /** + * The title or main message displayed in the hint. + */ + title: string; + + /** + * Determines whether an icon should be displayed alongside the hint. + * Optional. Defaults to false if not provided. + */ + icon?: boolean; + + /** + * Specifies the type of hint to display. + * Can be one of the following: 'info', 'warning', 'alert', 'success', 'active', or an empty string. + * Optional. + */ + type?: 'info' | 'warning' | 'alert' | 'success' | 'active' | ''; + + /** + * Indicates whether the hint is disabled. + * Optional. When true, the hint may appear inactive or be hidden. + */ + disabled?: boolean; +}