Tabs

The Tabs component provides a set of layered sections displayed one at a time, allowing for organized content presentation.

Preview

Gravity tabs component

Usage

Props

Prop
Description
Required
Value

className

custom style

optional

SCSS or Tailwind

defaultValue

default selected tab name

required

string

Notes

  • The Tabs component uses TabsPrimitive from @radix-ui/react-tabs for tab functionality.

  • The className prop allows for custom styling to be applied.

  • The defaultValue prop specifies the default selected tab.

  • For more details, refer to the Shadcn Tabs documentation.

Last updated

Was this helpful?