Skip to main content
Version: Bleeding Edge 🚧

Tab.Item

They are individual item of the parent Tab. They are clickable and allows users to click and change Tab.

Usage

Import

import { Tab } from '@rneui/themed';

Theme Key

TabItem

Active Tab Items

<Tab.Item
containerStyle={(active) => ({
backgroundColor: active ? "red" : undefined,
})}
>
Tab
</Tab.Item>

Props

note

Includes all Button props.

NameTypeDefaultDescription
activebooleanAllows to define if TabItem is active.
buttonStyleViewStyle or (active: boolean) => ViewStyleAdditional button style
containerStyleViewStyle or (active: boolean) => ViewStyleAdditional Styling for button container.
iconContainerStyleViewStyle or (active: boolean) => ViewStyleAdditional Styling for Icon Component container.
titleStyleTextStyle or (active: boolean) => TextStyleAdditional button title style
variantprimary | defaultDefine the background Variant.