Yes. Every component has a free version you can ship today; Pro adds the React source and the extra tints.

You can. One licence covers unlimited projects, your own or a client's.

No. The free version is one script file and a custom element — it works in plain HTML.

Every component takes theme="dark". It follows whatever your page is doing.

Code

<!-- pearl-accordion.free.js: download it from the Install section below and host it with your site -->
<script src="/pearl-accordion.free.js" defer></script>

<pearl-accordion width="420" theme="light">
  <section title="Is there a free plan?" open>
    Yes. Every component has a free version you can ship today.
  </section>
  <section title="Can I use it in client work?">
    You can. One licence covers unlimited projects.
  </section>
  <section title="Do I need a build step?">
    No. It is one script file and a custom element.
  </section>
</pearl-accordion>

In context

Yes. Every component has a free version you can ship today; Pro adds the React source and the extra tints.

You can. One licence covers unlimited projects, your own or a client's.

No. The free version is one script file and a custom element — it works in plain HTML.
Several rows open at once

You can. One licence covers unlimited projects, your own or a client's.

No. The free version is one script file and a custom element — it works in plain HTML.

Every component takes theme="dark". It follows whatever your page is doing.
Mint Pro

Install · Free Web Component

One file, no dependencies. Aurora preset, every other option included. Host it yourself so your visitors never load anything from our servers.

1. Install with one command — or download the file
shadcn CLI · React
npx shadcn@latest add https://www.ui-design.co/r/pearl-accordion.json
2. Load it and use the element
HTML
<!-- pearl-accordion.free.js: download it from the Install section below and host it with your site -->
<script src="/pearl-accordion.free.js" defer></script>

<pearl-accordion width="420" theme="light">
  <section title="Is there a free plan?" open>
    Yes. Every component has a free version you can ship today.
  </section>
  <section title="Can I use it in client work?">
    You can. One licence covers unlimited projects.
  </section>
  <section title="Do I need a build step?">
    No. It is one script file and a custom element.
  </section>
</pearl-accordion>
3. React + TypeScript (optional)

The shadcn command adds a typed React wrapper for you. Using the file directly? Custom elements work in React as-is; for type checking add:

TypeScript
// pearl-accordion.d.ts
declare namespace JSX {
  interface IntrinsicElements {
    'pearl-accordion': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
      multiple?: boolean | '';
      width?: number | string;
      size?: number | string;
      radius?: number | string;
      'heading-level'?: number | string;
      theme?: 'light' | 'dark';
      sound?: boolean | '';
    };
  }
}

Pro · React + TypeScript Pro

One payment of $4.99, yours forever. Use it in unlimited personal and commercial projects; no resale.

  • React component with TypeScript types and the full source — items take any React content
  • Sunset, Mint and Mono tints, plus custom tints from Brand Fit
  • The vanilla Web Component with every tint, a demo page, README and license

Attributes & props

NameTypeDefaultDescription
<section title="…"> children—One child per row: its title attribute is the heading, its content the answer (any HTML). Add open to start it unfolded.
multiple booleanoffSeveral rows may be open at once. By default opening one closes the others.
width number (px) | CSS width420Slab width; "100%" fills the parent.
size number (px)16Heading size; the padding, the bead and the answer text scale with it.
radius number (px)22Corner radius of the slab.
heading-level 2..63Which heading tag the row titles use, to fit your page outline.
theme 'light' | 'dark''light'White porcelain or dark.
sound booleanoffA porcelain tap, higher when a row opens. Also on for everything inside an element with data-ui-sound="on".
tint Pro'aurora' | 'sunset' | 'mint' | 'mono' | object'aurora'Colours of the bead glow and the seam, or a custom tint. Free build ships Aurora only.

Each row is a real heading with a button inside, wired to its panel with aria-expanded and aria-controls; closed panels are inert, so Tab skips what you cannot see. Up / Down, Home and End move between rows. It fires toggle with detail.index and detail.open, and has open(i), close(i) and toggle(i) methods. The unfold is a CSS grid transition — no height measuring, no layout thrash. Reduced motion opens rows at once.

More components