🏷️ Added accordion interface file
This commit is contained in:
parent
2af0369a88
commit
d6abeb26c0
28
src/components/accordion/IVAccordion.type.ts
Normal file
28
src/components/accordion/IVAccordion.type.ts
Normal 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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user