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