TabsContent
Loading example…
TabsContent is part of the Navigation set, imported from @jcsoftdev/ui/navigation.
Import
Section titled “Import”import { TabsContent } from "@jcsoftdev/ui/navigation";Single-component entry points tree-shake to just this component: @jcsoftdev/ui/navigation/tabs.
<TabsContent aria-label="Student sections" value="grades"> <> <TabsNavLink value="summary" href="#summary"> Summary </TabsNavLink> <TabsNavLink value="grades" href="#grades" count={8}> Grades </TabsNavLink> <TabsNavLink value="attendance" href="#attendance"> Attendance </TabsNavLink> </></TabsContent>| Prop | Type | Default | Description |
|---|---|---|---|
value * |
string |
||
forceMount |
boolean |
Keeps the panel mounted (hidden) while inactive. | |
intent |
string |
||
intentKey |
string |
* marks a required prop.
It also accepts the native props of the element or primitive it renders (for example className, id, aria-* and event handlers).
Storybook stories
Section titled “Storybook stories”- Default
- Keyboard Uses Native Links
- As Child With Router Link
- Render Link
- Active Override
- Follows The Current Page
- Default
- With Counts
- Disabled Tab
- Controlled
- Narrow
Source
Section titled “Source”packages/ui/src/navigation/tabs/tabs.tsx