Collapsible
One section that folds. Short stepped motion, none under reduced motion.
import { Collapsible } from "@forgeron/ui";import { Collapsible } from "@forgeron/ui";
export default function Section() {
return (
<div style={{ width: "min(100%, 420px)" }}>
<Collapsible title="Advanced options" hint="3">
Retries, timeouts and the region the tool runs in.
</Collapsible>
</div>
);
}API → Props
| Prop | Type | Default | Description |
|---|---|---|---|
title | ReactNode | — | The button that folds and unfolds. |
hint | ReactNode | — | Mono text at the end of the header. |
open / defaultOpen / onOpenChange | boolean / boolean / (open) => void | — | Controlled or not. |
keepMounted | boolean | — | Keeps the content in the page while folded. |
variant | "framed" | "plain" | "framed" | A frame, or a line only. |
disabled | boolean | — | Not editable. |
className | string | — | Extra classes. |