Develop ultra fast with Prismane 🎉

Tabs API

Learn about the Tabs component's props and CSS classes.

Import

import {
  TabsProps,
  TabsListProps,
  TabsPanelProps,
  TabsTabProps,
} from "@prismane/core";

Props

Tabs

Tabs extends Flex component's props.

NameTypeDescriptionDefault
variantunderlined / filledThe variant of the tabs component.underlined
defaultValuestringThe default active tab.null

Tabs.List

Tabs.List extends Flex component's props.

Tabs.Panel

Tabs.Panel extends Flex component's props.

NameTypeDescriptionDefault
valuestringThe value of the given tabs panel.-

Tabs.Tab

Tabs.Tab extends Flex and Transition components' props.

NameTypeDescriptionDefault
valuestringThe value of the given tabs tab.-

CSS

Tabs

Tabs extends Flex component's CSS classes.

RuleGlobal ClassDescription
root.PrismaneTabs-rootThe container of the tabs component.
root.PrismaneTabs-root-{variant}The container of the tabs component based on it's variant.

Tabs.List

Tabs.List extends Flex component's CSS classes.

RuleGlobal ClassDescription
root.PrismaneTabsList-rootThe container of the tabs list component.

Tabs.Panel

Tabs.Panel extends Flex component's CSS classes.

RuleGlobal ClassDescription
root.PrismaneTabsPanel-rootThe container of the tabs panel component.

Tabs.Tab

Tabs.Tab extends Flex and Transition components' CSS classes.

RuleGlobal ClassDescription
root.PrismaneTabsTab-rootThe container of the tabs tab component.