Account
Make changes to your account here. Click save when you are done.
Installation
Install the component
templui add tabsAdd the JavaScript to your layout
@tabs.Script()Call this template in your base layout file (e.g., in the <head> section).
API Reference
Required parameter
Hover for description
Tabs
Root container for the tabs component.
| Name | Type | Default |
|---|---|---|
| | - |
| | - |
| | - |
List
Container for tab triggers with styled background and indicator.
| Name | Type | Default |
|---|---|---|
| | - |
| | - |
| | - |
Trigger
Individual tab button that activates corresponding content.
| Name | Type | Default |
|---|---|---|
| | - |
| | - |
| | - |
| | - |
| | |
| | - |
Content
Container for tab content that shows when corresponding trigger is active.
| Name | Type | Default |
|---|---|---|
| | - |
| | - |
| | - |
| | - |
| | |
| | - |
JavaScript API
// Set active tab programmatically
window.tui.tabs.setActive("tabs-id", "tab-value");