---
title: "Gooey Accordion"
description: "An accordion on one soft surface. An open item pulls away with a liquid neck that snaps, and the panel, gap, and corners spring past their end and settle."
url: https://gelatinui.com/components/gooey-accordion
markdown_url: https://gelatinui.com/components/gooey-accordion.md
access: pro
install: "npx shadcn@latest add @gelatin-ui-pro/gooey-accordion"
version: "2026-11-09"
index: https://gelatinui.com/llms.txt
docs_index: https://gelatinui.com/docs/llms.txt
---

# Gooey Accordion

> An accordion on one soft surface. An open item pulls away with a liquid neck that snaps, and the panel, gap, and corners spring past their end and settle.

Page: https://gelatinui.com/components/gooey-accordion

## When to use it

Best for: An FAQ or a settings list where the open and close motion is part of the look.

- Use it where a playful motion fits the page: a marketing FAQ, an onboarding panel, a settings list.
- Keep both motions on (the default). Set `overshoot={false}` for a calm 260ms glide with the neck, or `neck={false}` for the spring split with no neck.
- Set `multiple` to keep many panels open. Two open items side by side keep one 12px gap.

## When not to use it

- For a dense list or a quiet tool where motion must not draw the eye, use the [Accordion](https://gelatinui.com/components/accordion.md).
- For one panel with one trigger, use a [Collapsible](https://gelatinui.com/components/collapsible.md).

## Notes for agents

- The value is an array in both modes. Give each `GooeyAccordionItem` a `value`.
- `neck` and `overshoot` are on the root only. Both default to true.
- A `render` on `GooeyAccordionItem` replaces the element that draws the neck and moves the seams: the item then keeps only the look at rest.
- Put only `GooeyAccordionItem` parts straight in the root: the seams read the item next to each item.

## Anatomy

```text
GooeyAccordion
├─ GooeyAccordionItem (0..n)
├─ GooeyAccordionTrigger (0..n)
└─ GooeyAccordionContent (0..n)
```

## API reference

### GooeyAccordion

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | `string` |  |  |
| `neck` | `boolean` | true | A liquid neck joins two items while their seam splits or joins, then snaps. Default true. |
| `overshoot` | `boolean` | true | The panel height, the gap, and the corners spring past their end once and settle (the `panelBounce` spring). With `false` they glide on the 260ms `panel` tween. Default true. |

Also takes every prop of Base UI `Accordion.Root`: https://base-ui.com/react/components/accordion

### GooeyAccordionItem

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | `string` |  |  |

Also takes every prop of Base UI `Collapsible.Root`: https://base-ui.com/react/components/collapsible

### GooeyAccordionTrigger

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | `string` |  |  |
| `headerProps` | `Omit` |  | Props of the heading around the button (Base UI `Accordion.Header`, an `<h3>`). Set the level that fits the page with a render function: `headerProps={{ render: ({ children...props }) => <h2 {...props}>{children}</h2> }}`. The element form `render: <h2 />` works too, but `jsx-a11y/heading-has-content` reports it, because the rule cannot see that Base UI adds the children. A `className` here adds to the component classes. |

### GooeyAccordionContent

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | `string` |  |  |

Also takes every prop of Base UI `Accordion.Root`: https://base-ui.com/react/components/accordion

## Styling

| Part | Slot | States | CSS variables | Tokens |
| --- | --- | --- | --- | --- |
| GooeyAccordion | `gooey-accordion` |  |  |  |
| GooeyAccordionItem | `gooey-accordion-item` |  |  |  |
| GooeyAccordionTrigger | `gooey-accordion-trigger` |  |  |  |
| GooeyAccordionContent | `gooey-accordion-content` | `data-ending-style`, `data-open` | `--accordion-goo-bottom`, `--accordion-goo-gap`, `--accordion-goo-top`, `--gooey-accordion-duration`, `--gooey-accordion-ease`, `--gooey-accordion-ease-held`, `--radius-xl`, `--spacing` |  |

## Usage

Compose one item for each panel. Turn a motion off on the root with `neck={false}` or `overshoot={false}`.

```tsx title="help-faq.tsx"
import {
  GooeyAccordion,
  GooeyAccordionContent,
  GooeyAccordionItem,
  GooeyAccordionTrigger,
} from "@/components/ui/pro/gooey-accordion";

export function HelpFaq() {
  return (
    <GooeyAccordion defaultValue={["invite"]}>
      <GooeyAccordionItem value="cost">
        <GooeyAccordionTrigger>What does Northwind cost?</GooeyAccordionTrigger>
        <GooeyAccordionContent>Free for up to 3 people.</GooeyAccordionContent>
      </GooeyAccordionItem>
      <GooeyAccordionItem value="invite">
        <GooeyAccordionTrigger>Can I invite my team?</GooeyAccordionTrigger>
        <GooeyAccordionContent>Yes. Owners and admins invite people from Members.</GooeyAccordionContent>
      </GooeyAccordionItem>
    </GooeyAccordion>
  );
}
```

## Compose

Rules:

- Group with a Frame (`group-in-frames`): Put related panels in one `Frame` with its header and footer outside the panels, and keep a plain `Card` for one block of content.
- Compose the parts (`compose-parts`): Build each item from its named parts as children, and pass your text and icons in as parts.
- Every state is designed (`every-state`): Give each view of data its loading, empty, and error states: a skeleton in the final layout, an `Empty` with an illustration and one next action, and an error that says what failed and how to retry.

## Add it

```bash
npx shadcn@latest add @gelatin-ui-pro/gooey-accordion
```

It adds 18 registry items: 17 files, 3207 lines, and the npm packages `@base-ui/react`, `@mantine/hooks`, `clsx`, `motion`, `tailwind-merge`, `tailwind-variants`.

## Built on

- [Accordion](https://gelatinui.com/components/accordion.md)
- [Collapsible](https://gelatinui.com/components/collapsible.md)

## For AI agents

- Every item, one file: https://gelatinui.com/llms.txt
- MCP server (`search_items`, `get_item`, `get_install_plan`): https://gelatinui.com/mcp

## Related

- [Accordion](https://gelatinui.com/components/accordion.md)
- [Collapsible](https://gelatinui.com/components/collapsible.md)

## Keyboard

| Keys | Action |
| --- | --- |
| Enter, Space | Opens or closes the panel of the focused heading. |
| ↑ ↓ | Moves between the headings. |
| Home, End | Moves to the first or the last heading. |

## Accessibility

Each trigger is a real button in a heading, with its expanded state, as in the Accordion (Base UI).

A row is 44px tall, so it is a full touch target. The neck is an SVG with `aria-hidden`.

## Motion

| Part | Motion |
| --- | --- |
| Panel, gap, and corners | panelBounce · stiffness 290, damping 20 · about 10% past the end, at rest by 660ms |
| Neck | panelBounce · thins and snaps at 85% of the split, then two drips pull back |
| Without overshoot | panel · 260ms · ease-panel (0.2, 0.4, 0.2, 1) |
| Chevron | panelBounce · turns past its angle and settles |
