Simal UI
Components

Tabs

Import

import { Tabs } from '@simal/ui/nativewindui';

Props

PropValuesDefaultDescription
tabsThe strip contents, each { id, label }. Order is render order; the strip scrolls horizontally once they overflow.
selectedId"summary"Id of the active tab. Controlled — Tabs holds no state, so this must come from the caller.
onSelectFires with the pressed tab id. Without it the strip is inert.

Examples

Interactive

Overflowing

The strip scrolls horizontally once the labels overflow.

On this page