Collapsible

A single standalone disclosure section that folds open and closed.

Installation

bun add elia
@import "tailwindcss";
@import "@aile.sh/elia/styles/elia.css";
@source "../node_modules/@aile.sh/elia";

Usage

import { Collapsible } from "@aile.sh/elia";

export function Example() {
  return (
    <div className="w-full max-w-sm">
      <Collapsible title="Storage notes" defaultOpen>
        Gelato holds at −14&nbsp;°C in the display case and −20&nbsp;°C in the
        back freezer; anything softer than −11&nbsp;°C gets pulled.
      </Collapsible>
    </div>
  );
}

— elia design system · MIT · base · https://github.com/aile-sh/elia