Import
import {
TabNav ,
TabNavLink
} from '@strongtie/design-system/tabnav' ;
Usage
< TabNav >
< TabNavLink href = "/" selected > Home </ TabNavLink >
< TabNavLink href = "/orders" > Orders </ TabNavLink >
< TabNavLink href = "/employees" > Employees </ TabNavLink >
< TabNavLink href = "/customers" > Customers </ TabNavLink >
</ TabNav >
<TabNavLink> PropsThe URL that the link points to.
Whether this navigation link is selected/active.
Whether this navigation link is disabled.
Usage Examples Basic Tab Navigation
With Disabled Tab
Custom Styling
Dynamic Tab Navigation
< TabNav >
< TabNavLink href = "/" selected > Home </ TabNavLink >
< TabNavLink href = "/orders" > Orders </ TabNavLink >
< TabNavLink href = "/employees" > Employees </ TabNavLink >
< TabNavLink href = "/customers" > Customers </ TabNavLink >
</ TabNav >
Styling Classes The following CSS classes are applied by the Tab Navigation components:
tab-nav-list – Root list container for navigation tabs
tab-nav-item – Individual tab list item wrapper
tab-nav-link – Tab link element with interactive states
tab-nav-title – Text content within each tab link
For more examples, visit the Storybook . < StudsTabNav >
< StudsTabNavLink Text = "Home" Href = "/" Selected = "true" />
< StudsTabNavLink Text = "Orders" Href = "/orders" />
< StudsTabNavLink Text = "Employees" Href = "/employees" />
< StudsTabNavLink Text = "Customers" Href = "/customers" />
</ StudsTabNav >
StudsTabNav ParametersGets or sets the child content containing the tab navigation links.
Attributes
Dictionary<string, object>
Specifies additional custom attributes that will be rendered by the component.
MouseEnter
EventCallback<ElementReference>
Gets or sets the callback that is invoked when the mouse enters an item.
MouseLeave
EventCallback<ElementReference>
Gets or sets the callback that is invoked when the mouse leaves an item.
A callback that will be invoked when the user right-clicks the component. Commonly used to display a context menu.
Culture
CultureInfo
default: "CultureInfo.CurrentCulture"
Gets or sets the culture used to display localizable data (numbers, dates). Set by default to “CultureInfo.CurrentCulture”.
Gets or sets the inline CSS style.
Gets or sets a value indicating whether this “T:Studs.StudsComponent” is visible. Invisible components are not rendered.
StudsTabNavLink ParametersGets or sets the text content of the navigation link.
Gets or sets the URL that the link points to.
Gets or sets whether this navigation link is selected.
Gets or sets whether this navigation link is disabled.
Gets or sets whether this navigation link is visible.
Gets or sets additional CSS styles for the navigation link.
Attributes
IDictionary<string, object>
Gets or sets additional attributes for the navigation link element.
Attributes
Dictionary<string, object>
Specifies additional custom attributes that will be rendered by the component.
MouseEnter
EventCallback<ElementReference>
Gets or sets the callback that is invoked when the mouse enters an item.
MouseLeave
EventCallback<ElementReference>
Gets or sets the callback that is invoked when the mouse leaves an item.
A callback that will be invoked when the user right-clicks the component. Commonly used to display a context menu.
Culture
CultureInfo
default: "CultureInfo.CurrentCulture"
Gets or sets the culture used to display localizable data (numbers, dates). Set by default to “CultureInfo.CurrentCulture”.
Gets or sets the inline CSS style.
Gets or sets a value indicating whether this “T:Studs.StudsComponent” is visible. Invisible components are not rendered.
Usage Examples Basic Tab Navigation
With Disabled Tab
Conditional Visibility
Dynamic Tab Navigation
With Custom Styling
< StudsTabNav >
< StudsTabNavLink Text = "Home" Href = "/" Selected = "true" />
< StudsTabNavLink Text = "Orders" Href = "/orders" />
< StudsTabNavLink Text = "Employees" Href = "/employees" />
< StudsTabNavLink Text = "Customers" Href = "/customers" />
</ StudsTabNav >
Styling Classes The following CSS classes are applied by the Tab Navigation components:
tabnav – Root tab navigation container
tabnav-nav – List container for navigation items with proper ARIA roles
tabnav-title – Text content within each tab link
For more examples, visit the Storybook .