Overview
Toggle visibility of content panels.Import
Usage
Live Preview
Run Locally
npm run tsx:core-gallery
Props
- title: string — Header label.
- content?: string — Body content.
- defaultOpen?: boolean — Initial expanded state (default true).
- BaseProps: borderStyle defaults to line, label set from title.
Methods
- toggle(), setContent(text), setTitle(text), setOpen(bool), isOpen().
Keyboard
- Space/Enter: toggle open/closed when focused.
Installation
Import
Quick Start
Production Examples
Testing
Best Practices
- Mantieni i titoli brevi e informativi; usa Paragraph all’interno per testo lungo.
