Made of something. Chipped ochre enamel with exposed steel and a continuous seam between header and revealed panel.

The moment. Opening catches at the seam with a brief local spark. The attached panel reveals smoothly; reversing immediately follows the latest action.

Yours to adapt. Copy the component source, styles and materials. Functional text stays live, effects respect reduced motion, and the artwork requires no remote hosting.

Try it

Open a row to release the latch and retract the shutter.

Install

Add it with the shadcn CLI, or copy the source manually.

Release candidate: public installation becomes available after deployment. Use an existing React 19 project with shadcn initialized and a components.json file. The CLI installs the source, CSS, embedded materials, MIT licence and font notices together.

Terminal
npx shadcn@latest add https://seanportfol.io/r/grimkit-bastion-accordion.json
Prefer a namespace? Register the registry once.
Terminal
npx shadcn@latest registry add @seanlynch=https://seanportfol.io/r/{name}.json
Terminal
npx shadcn@latest add @seanlynch/grimkit-bastion-accordion

Usage

Copy this example into a separate file, not over the installed component. The @/ alias points to your source root. In Next.js this is a Client Component; Vite also accepts the directive. Replace demonstration actions with your application logic.

components/examples/bastion-accordion-demo.tsx
"use client";

import { BastionAccordion } from "@/components/grimkit/bastion-accordion";

export default function Example() {
  return <BastionAccordion items={[
    { value: "stores", title: "Supply stores", children: <p>Supplies are ready.</p> },
    { value: "orders", title: "Orders", children: <p>Awaiting transmission.</p> },
  ]} />;
}

API Reference

Props on Bastion Accordion. Consult the included TypeScript source for supported native attributes.

PropTypeDefault
value / defaultValueControlled or initial open item. Empty string closes every panel.string""
onValueChangeReports a change immediately, independently of decorative animation.(value: string) => voidโ€“
itemsUnique value, title, panel content and optional disabled state. One panel opens at a time.readonly { value: string; title: string; children: ReactNode; disabled?: boolean }[]โ€“
classNameAdditional class on the control surface; does not replace the material styles.stringโ€“
effectsAuto honours reduced motion; off disables decorative motion and particles."auto" | "off""auto"

Information

Category
GrimKit
Files
  • components/grimkit/bastion-accordion.tsx
  • components/grimkit/core.tsx
  • components/grimkit/foundation.css
  • components/grimkit/materials.css
  • components/grimkit/modern-foundation.css
  • components/grimkit/modern-bastion-accordion.css
  • components/grimkit/modern-bastion-accordion-materials.css
  • components/grimkit/LICENSE.txt
  • components/grimkit/Saira-OFL.txt
  • components/grimkit/JetBrainsMono-OFL.txt
Dependencies
React 19 and React DOM 19; no additional runtime packages
Compatibility
React 19, TypeScript, CSS imports, Modern browsers
Version
0.2.0
Updated
Sep 22, 2026
Registry
grimkit-bastion-accordion