ITabProps

interface
Navigation

Props for <OrigamTab> — a single registered tab inside an <OrigamTabs> tablist. Supports optional leading icon and trailing appendIcon. ARIA wiring (role=tab, aria-selected, tabindex) is computed automatically.

TypeScript

Definition

The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Inheritance

Extends

Parent interfaces this one inherits from. Their properties are available on every consumer of this interface.

API

Properties

Every property declared by this interface, with its type, optionality and default.

tag
string
HTML tag rendered as the tab root element.
text
string
variant
TTabVariant
appendIcon
TIcon
Optional trailing icon rendered after the label text.
icon
TIcon
Optional leading icon rendered before the label text.

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Tab with leading icon

html