@axadrn starred 3 repositories
github.com/a-h/templ
github.com/charmbracelet/bubbletea
github.com/labstack/echo
Installation
templui add collapsible
Load the script once in your layout:
<head>
@collapsible.Script()
</head>
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 |
|---|---|---|
| | - |
| | - |
| | - |