mirror of
https://github.com/anotherhadi/ilovetui.git
synced 2026-08-22 20:45:49 +02:00
Change style package, new components, ...
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
# tabs
|
||||
|
||||
A horizontal tab bar styled from `style.S`. Renders the bar and the `Content` frame around the
|
||||
active item; the content itself runs and renders through the host, same as any other custom
|
||||
component in this repo.
|
||||
|
||||
- `Focused()` controls the frame's border color, independent of which tab is active (that's shown
|
||||
only by the title style).
|
||||
- Tabs collapse into a trailing `+N` badge when they don't fit `Width`, keeping the active one
|
||||
always visible.
|
||||
- `WithLoop(false)` clamps navigation at either end instead of wrapping.
|
||||
- The frame follows `style.S.BorderType`: corners and junctions are derived from the border's own
|
||||
glyphs, not hardcoded.
|
||||
|
||||
See `examples/tabs`.
|
||||
Reference in New Issue
Block a user