From d6abeb26c003b93c8d07ea6105abdf7b7efcc50a Mon Sep 17 00:00:00 2001 From: Paul Valerie GOMA Date: Mon, 21 Jul 2025 14:27:45 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=B7=EF=B8=8F=20=20Added=20accordion=20?= =?UTF-8?q?interface=20file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/accordion/IVAccordion.type.ts | 28 ++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/components/accordion/IVAccordion.type.ts diff --git a/src/components/accordion/IVAccordion.type.ts b/src/components/accordion/IVAccordion.type.ts new file mode 100644 index 0000000..1b61e80 --- /dev/null +++ b/src/components/accordion/IVAccordion.type.ts @@ -0,0 +1,28 @@ +/** + * Interface representing the configuration and state of an Accordion component. + */ +export default interface IVAccordion { + /** + * Optional unique identifier for the accordion instance. + */ + id?: string; + + /** + * Indicates whether the accordion is disabled. + * When true, user interaction is prevented. + */ + disabled?: boolean; + + /** + * The current value(s) of the accordion. + * Can be a single value or an array of values, depending on the selection mode. + * Accepts string, number, or null. + */ + value?: null | string | number | string[] | number[]; + + /** + * The value associated with a specific panel within the accordion. + * Useful for identifying or controlling individual panels. + */ + panelValue?: undefined | string | number; +}