Tabs

Navigation interface that organizes content into sections.

Source Tailwind Javascript

Account

Make changes to your account here. Click save when you are done.

Installation

  1. Install the component

    templui add tabs
  2. Add 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
ID
string
-
Class
string
-
Attributes
templ.Attributes
-

List

Container for tab triggers with styled background and indicator.

Name Type Default
ID
string
-
Class
string
-
Attributes
templ.Attributes
-

Trigger

Individual tab button that activates corresponding content.

Name Type Default
ID
string
-
Class
string
-
Attributes
templ.Attributes
-
Value
string
-
IsActive
bool
false
TabsID
string
-

Content

Container for tab content that shows when corresponding trigger is active.

Name Type Default
ID
string
-
Class
string
-
Attributes
templ.Attributes
-
Value
string
-
IsActive
bool
false
TabsID
string
-