Sheet
Extends the Dialog component to display content that complements the main content of the screen.
Edit profile
Make changes to your profile here. Click save when you're done.
Examples
Sheet Sides
Top Sheet
This slides in from the top.
Content for the top sheet.
Right Sheet
This slides in from the right.
Content for the right sheet.
Bottom Sheet
This slides in from the bottom.
Content for the bottom sheet.
Left Sheet
This slides in from the left.
Content for the left sheet.
External Trigger
External Trigger
This sheet has no internal trigger
The trigger button exists outside the Sheet component.
Standalone Content
Standalone Content
No wrapper component needed
Useful for HTMX or dynamic content loading.
Installation
Install the component
templui add sheetAdd the JavaScript to your layout
@dialog.Script()Call this template in your base layout file (e.g., in the <head> section).
API Reference
Required parameter
Hover for description
Sheet
| Name | Type | Default |
|---|---|---|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
Trigger
| Name | Type | Default |
|---|---|---|
| | |
| | |
| | |
| | |
Content
| Name | Type | Default |
|---|---|---|
| | |
| | |
| | |
| | |
| | |
| | |
Header
| Name | Type | Default |
|---|---|---|
| | |
| | |
| | |
Title
| Name | Type | Default |
|---|---|---|
| | |
| | |
| | |
Description
| Name | Type | Default |
|---|---|---|
| | |
| | |
| | |
Close
| Name | Type | Default |
|---|---|---|
| | |
| | |
| | |