Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TabsManagerContext

Hierarchy

  • TabsManagerContext

Index

Properties

activeIndex: number

The current active tab index to determine which tabs to animate in and out of view.

tabs: readonly InitializedTabConfig[]

The list of tabs that should be controlled by the tabs manager.

tabsId: string

This is an id prefix to use for all the child Tab, TabList, and TabPanel components.

example

id behavior

- `Tabs` -> id={id}
- `Tab` ->
- id={`${id}-tab-${index + 1}`}
- panelId={active && `${id}-panel-${index + 1}`}
- `TabPanel` -> id={`${id}-panel-${index + 1}`}

Methods

  • onActiveIndexChange(activeIndex: number): void
  • A function to call when the activeIndex should change due to keyboard movement or clicking on a tab.

    Parameters

    • activeIndex: number

    Returns void

Generated using TypeDoc