functions

TabButton
Edited: Sunday 25 January 2026

TabButton

Category: Components
File: tabs.go
Package: ui

Signature

1func TabButton(cl *Clickable, active bool, l string) W

Description

TabButton renders a single tab button with hover and active states.
Active tabs show with accent colors, hovered tabs show card background.

Example:

btn := &Clickable{}
tab := TabButton(btn, true, "Settings")

Used internally by Tabs widget but can be used standalone.

Examples

No examples available yet. See the test files for usage.

To add an example for this function, create an ExampleTabButton function in the test files.


This documentation is auto-generated. To update, run make docs

Backlinks