>skeehn

accordion

Collapsible sections with dither

Coreaccordion.cssaccordion.js

Installation

$npx skeehn add accordion

Preview

Props

PropTypeDefaultDescription
itemsAccordionItem[][]Array of sections with title, content, and optional defaultOpen

Usage

accordion.tsx
1import { Accordion } from '@skeehn/react';23export function FAQ() {4  return (5    <Accordion6      items={[7        { title: 'What is skeehn?', content: 'An ASCII/dither UI library.' },8        { title: 'Is it free?', content: 'Yes, MIT licensed.' },9      ]}10    />11  );12}