@axadrn starred 3 repositories
github.com/a-h/templ
github.com/charmbracelet/bubbletea
github.com/labstack/echo
Installation
Install the component
templui add collapsibleAdd the JavaScript to your layout
@collapsible.Script()Call this template in your base layout file (e.g., in the <head> section).
API Reference
Required parameter
Hover for description
Collapsible
Root container for collapsible content. Controls the open/closed state.
| Name | Type | Default |
|---|---|---|
| | |
| | - |
| | - |
| | |
Trigger
Button that toggles the collapsible content. Automatically handles click events and keyboard navigation.
| Name | Type | Default |
|---|---|---|
| | - |
| | - |
| | - |
Content
Content that expands and collapses. Uses smooth height transitions for animations.
| Name | Type | Default |
|---|---|---|
| | - |
| | - |
| | - |