Skip to content

Gooey Accordion

Pro

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.

  • Base UI
  • Motion
  • React 19
  • Tailwind CSS 4

Added Nov 9, 2026 · Pro license

Playground

Loading the preview

Props

Needs your Pro API key in GELATIN_UI_PRO_TOKEN. Set it up

Pro itemAPI key required

Gooey Accordion needs a Pro API key

Try the live preview for free. With Pro, the add command above puts the source in your project.

Files it adds
16
More Pro items, one API key
+327
Your coding agent runs it
1 cmd

$79$129once, for life

Already have Pro? Sign in to set up your API key.

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

help-faq.tsx

GooeyAccordion

<div>
PropTypeDefaultDescription
classNamestring—
neckbooleantrueA liquid neck joins two items while their seam splits or joins, then snaps. Default true.
overshootbooleantrueThe 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.
From Base UIAccordion.RootBase UI docs
valueAccordionValue<Value>—The controlled value of the item(s) that should be expanded. To render an uncontrolled accordion, use the defaultValue prop instead.
defaultValueAccordionValue<Value>—The uncontrolled value of the item(s) that should be initially expanded. To render a controlled accordion, use the value prop instead.
disabledbooleanfalseWhether the component should ignore user interaction.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

GooeyAccordionItem

<div>
PropTypeDefaultDescription
classNamestring—
From Base UICollapsible.RootBase UI docs
disabledbooleanfalseWhether the component should ignore user interaction.
valueany—A unique value that identifies this accordion item. If no value is provided, a unique ID will be generated automatically. Use when controlling the accordion programmatically, or to set an initial open state.
onOpenChange—Event handler called when the panel is opened or closed.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

GooeyAccordionTrigger

<div>
PropTypeDefaultDescription
classNamestring—
headerProps—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.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

GooeyAccordionContent

<div>
PropTypeDefaultDescription
classNamestring—
From Base UIAccordion.RootBase UI docs
hiddenUntilFoundbooleanfalseAllows the browser's built-in page search to find and expand the panel contents. Overrides the keepMounted prop and uses hidden="until-found" to hide the element without removing it from the DOM.
keepMountedbooleanfalseWhether to keep the element in the DOM while the panel is closed. This prop is ignored when hiddenUntilFound is used.
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.
  • 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.
  • For a dense list or a quiet tool where motion must not draw the eye, use the Accordion.
  • For one panel with one trigger, use a Collapsible.
EnterorSpaceOpens or closes the panel of the focused heading.
↑ ↓Moves between the headings.
HomeorEndMoves to the first or the last heading.

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.

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

Built with

Installs with Gooey Accordion

  1. AddedGooey Accordion, with Accordion, Collapsible.
Open the release