Skip to content

Accordion

Accordion

jsx
import Accordion from 'intergalactic/accordion';

<Accordion />;

AccordionProps

& {...}
NameTypeDescription
value Value for the active tab. Can be set as stroke, number, null or as array.
defaultValue Value of the active tabs selected by default
onChange((value: , event: React.SyntheticEvent) => void) | React.Dispatch<React.SetStateAction<>> Called when the selection is changed
durationnumber Animation duration of each Accordion.Item inside
use"primary" | "secondary" Changes the visual appearance of the component

Accordion.Item

jsx
import { Accordion } from 'intergalactic/accordion';

<Accordion.Item />;

AccordionItemProps

NameTypeDescription
valuestring | number Tab value
disabledboolean Disabling selection changes
durationnumber Animation duration

Accordion.Item.Toggle

jsx
import { Accordion } from 'intergalactic/accordion';

<Accordion.Item.Toggle />;

Has all properties as BoxProps prop does.

Accordion.Item.Collapse

jsx
import { Accordion } from 'intergalactic/accordion';

<Accordion.Item.Collapse />;

CollapseProps

& {...}
NameTypeDescription
overflowHiddenboolean Add overflow=clip when passing animation

Has all properties as BoxProps prop does.

Accordion.Item.Chevron

jsx
import { Accordion } from 'intergalactic/accordion';

<Accordion.Item.Chevron />;

Has all properties as BoxProps prop does.

Released under the MIT License.

Released under the MIT License.