Plus Accordion
A list of questions that open in place. The plus at the end of each row turns into a minus while the answer grows open, and several rows can stay open.
pixikit.com/docs/components/plus-accordion
Customize
Multiple
Default open0
Width600px
Padding y20px
Padding x20px
Font size16.0px
Font weight400
Answer size15.0px
Answer gap18px
Duration0.40s
Icon duration0.30s
Icon
Icon size14px
Icon stroke2.00px
Icon side
Hover opacity0.60
Dividers
Divider color
Text color
Answer color
Props
24| Name | Type | Default | Description |
|---|---|---|---|
items | PlusAccordionItem[] | SAMPLE | The rows. A short sample set shows when left out. |
multiple | boolean | true | Lets several rows stay open together. |
defaultOpen | number | -1 | Index of the row open at first; -1 opens none. |
onOpenChange | (open: number[]) => void | None | Called with the indexes of the open rows. |
width | number | 600 | Widest the list grows, in px. |
paddingY | number | 20 | Space above and below each title, in px. |
paddingX | number | 20 | Space left and right of each row, in px. |
fontSize | number | 16 | Title size, in px. |
fontWeight | number | 400 | Title weight. |
answerSize | number | 15 | Answer size, in px. |
answerGap | number | 18 | Space under an open answer, in px. |
duration | number | 0.4 | Seconds the answer takes to open and close. |
iconDuration | number | 0.3 | Seconds the icon takes to turn. |
icon | "plus" | "chevron" | "none" | "plus" | `plus` turns into a minus, `chevron` flips, `none` shows no icon. |
iconSize | number | 14 | Icon size, in px. |
iconStroke | number | 2 | Icon line thickness, in px. |
iconSide | "right" | "left" | "right" | Which side the icon sits on. |
hoverOpacity | number | 0.6 | Opacity of a title while the pointer is over it. |
dividers | boolean | true | Draws a line between rows. |
dividerColor | string | "var(--border)" | Line colour. |
textColor | string | "var(--foreground)" | Title and icon colour. |
answerColor | string | "var(--muted-foreground)" | Answer colour. |
className | string | "" | |
style | CSSProperties | None |