Overview
tng-expansion-panel is a headless collapsible panel with a clickable header and optional animated content. Use open / openChange for controlled state, disabled and padded. Project title with tngExpansionTitle and content with tngExpansionContent. Optional custom icons via tngExpansionIconOpen / tngExpansionIconClose. Use the slot input for micro-styling: container (root), header, title, iconWrapper, chevron, contentOuter, contentClip, contentBody, contentPadding.
Quick example
<tng-expansion-panel>
<div tngExpansionTitle>What is TailNG?</div>
<div tngExpansionContent>
TailNG is a minimal Angular + Tailwind UI kit with slot-based styling for theming.
</div>
</tng-expansion-panel>
import { TngExpansionPanel } from '@tailng-ui/ui/layout';Features
Use open and openChange for controlled mode, or leave unset for internal state. toggle() for programmatic open/close.
Project title with tngExpansionTitle, body with tngExpansionContent. Optional tngExpansionIconOpen and tngExpansionIconClose for custom expand/collapse icons.
slot keys: container, header, title, iconWrapper, chevron, contentOuter, contentClip, contentBody, contentPadding.