Tabs
The Tabs
component provides a set of layered sections displayed one at a time, allowing for organized content presentation.
Preview
Usage
Props
Prop | Description | Required | Value |
---|---|---|---|
className | custom style | optional | SCSS or Tailwind |
defaultValue | default selected tab name | required | string |
Notes
The
Tabs
component usesTabsPrimitive
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