Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TabConfig

Hierarchy

Index

Properties

Optional children

children: ReactNode

The children to display in the tab. This is required and should normally just be text or an icon.

Optional className

className: string

An optional className to apply to the tab.

Optional contentClassName

contentClassName: string

An optional className to apply to the <span> surrounding the children of the Tab. You probably won't need to use this.

Optional contentStyle

contentStyle: CSSProperties

An optional style to apply to the <span> surrounding the children of the Tab. You probably won't need to use this.

Optional disabled

disabled: boolean

Boolean if the tab should be disabled.

Optional icon

icon: ReactNode

An optional icon to render in the Tab along with the normal text. If you want to have an icon only tab, you should not use this prop and instead just provide the icon as the tab's children.

Optional iconAfter

iconAfter: boolean

Boolean if the icon should appear after the text instead of before. When the stacked prop is also enabled, it will cause the icon to appear below the text instead of above.

Optional id

id: string

An optional id to use for the tab if the default generated ids are not to your liking.

Optional stacked

stacked: boolean

Boolean if the icon and text should be stacked instead of rendered inline. This is only valid when the icon prop has been provided.

Optional style

style: CSSProperties

An optional style to apply to the tab.

Generated using TypeDoc