🏷️ Added accordion interface file

This commit is contained in:
Paul Valerie GOMA 2025-07-21 14:27:45 +02:00
parent 2af0369a88
commit d6abeb26c0

View File

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