This component can be used to expand and collapse sections of content, making it easier to navigate and manage large amounts of information.
title
content
open
false
icon
<Accordion title="What is Accordion?" icon={IconLayers}>
Accordion is a UI component that allows users to expand and collapse sections of content, making
it easier to navigate and manage large amounts of information.
</Accordion>
The Accordion component allows you to customize its appearance by changing various color properties
such as headerColor
, textColor
, openedColor
, borderColor
, and topBorderColor
.
headerColor
none
textColor
var(--text)
openedColor
var(--hover)
borderColor
var(--border)
topBorderColor
var(--border)
<Accordion
title="Custom Colors"
icon={IconLayers}
headerColor="#d5d5fd"
textColor="#fffff"
openedColor="#cacaf1"
borderColor="#fbf3ff"
topBorderColor="#fbf3ff"
>
Set custom colors for the Accordion component.
</Accordion>