Components › Display

Disclosure

A single expandable section for shipping details, notes or other supporting information.

Installation

npx plankui@latest add disclosure

Usage

import { Disclosure } from "@/components/ui/disclosure";

<Disclosure summary="Shipping details">Orders ship within two business days.</Disclosure>

API reference

PropTypeDefaultDescription
summaryReactNoderequiredVisible label for the toggle.
openbooleanfalseShows the panel expanded when the attribute is present.
childrenReactNodeContent inside the panel.

View the source on GitHub