GitHub

Reference machines

tabs

interface 3 type 4 function 1
interface Interfaces 3
interface tabs/index.ts · L62

# CreateTabsInput

Members

activation?
optional activation?: TabsActivation
defaultValue?
optional defaultValue?: string | null
disabled?
optional disabled?: boolean
items
items: readonly TabItem[]
navigation?
optional navigation?: "wrap" | "clamp"

Whether arrow navigation wraps (default per APG) or clamps.

interface tabs/index.ts · L30

# TabItem

Members

disabled?
readonly optional disabled?: boolean

###### Overrides

CollectionItem.disabled

id
readonly id: string

###### Overrides

CollectionItem.id

label?
readonly optional label?: string

###### Overrides

CollectionItem.label

value
readonly value: string
type Type Aliases 4

# TabsEvent

TabsEvent = { id: string; type: "SELECT"; } | { id: string; type: "FOCUS"; } | { type: "BLUR"; } | { direction: NavigateDirection; type: "NAVIGATE"; } | { type: "ACTIVATE_FOCUSED"; } | { type: "SET.VALUE"; value: string | null; } | { items: ReadonlyArray<TabItem>; type: "SET.ITEMS"; } | { activation: TabsActivation; type: "SET.ACTIVATION"; } | { type: "DISABLE"; } | { type: "ENABLE"; }
function Functions 1

# createTabsMachine ( )

createTabsMachine(input): TabsMachine

Construct a fresh Tabs machine.

Parameters

Returns

TabsMachine