IzzyBlazor.TabNav in the IzzyBlazor.Core package, generated from the 0.1.0-alpha.31 assembly
and its doc comments.
Properties (6)
Labelstring?The tab strip's name for screen readers, such as "Account settings".
VariantTabsVariant = TabsVariant.LineHow the tabs look. Defaults to TabsVariant.Line.
SizeControlSize = ControlSize.MdTab height and text size, shared with buttons and fields. Defaults to ControlSize.Md.
FullWidthbool = falseStretches the tabs to share the full width (or, vertical, the list's width).
Idstring?The element id. Generated when not set.
ChildContentRenderFragment?The tabs.
Plus 17 item props and 4 common props.
Show them hereEvents (0)
No events.
Parts (1)
Components written inside TabNav, documented here with it.
TabLink
A tab in a TabNav: a link to its own page, marked current from the URL on the server.
Hrefstring requiredThe page the tab links to.
Labelstring requiredThe tab's text.
IconIconData?An icon before the label.
Badgestring?A small count or label after the text, such as "3".
BadgeStatusStatus = Status.NeutralColors the badge, solid, so it stands out from the tab's text: Status.Success for an offer such as "2 months free", Status.Danger for something that needs attention. Defaults to Status.Neutral, a quiet gray count.
BadgeVisibleFromBreakpoint?Shows the badge only from this breakpoint up, so a row of tabs with counts fits a phone: BadgeVisibleFrom="Breakpoint.Sm" on the counts that matter less.
Disabledbool = falseShows the tab but not as a link.
DisabledReasonstring?Why the tab is Disabled, such as "On the Business plan": its tooltip, which screen readers read after its name.
MatchNavLinkMatch = NavLinkMatch.PrefixHow the current URL must match Href for the tab to be selected. Prefix (the default) also selects it on pages below it. A link with a query string (?tab=billing) is selected only when the current query string is the same, and then a tab whose link has no query isn't, so tabs for one page told apart by the query select one at a time.
Currentbool?Marks the tab current (true) or not (false) whatever the URL, for a choice the page knows from elsewhere, such as a cookie. Unset (the default): from the URL, by Match, unless another tab is set current. A current tab set this way has aria-current="true" (a choice, not necessarily this page); a disabled tab is never current.
Types (4)
Breakpoint
enumThe responsive breakpoints. Mobile first: a value at a breakpoint applies from that width upward.
| Value | Description |
|---|---|
Sm | 640px and wider. |
Md | 768px and wider. |
Lg | 1024px and wider. |
Xl | 1280px and wider. |
Xxl | 1536px and wider: for where an AppAside shows, and HiddenFrom/VisibleFrom. AppSidebar's and SiteNav's breakpoints, and responsive values ( |
ControlSize
enumThe height of interactive controls. Shared by buttons and form fields, so a button and an input of the same size line up in a row.
| Value | Description |
|---|---|
Sm | 32px tall, small text. |
Md | 36px tall (the default). |
Lg | 44px tall, large text. For touch-first and marketing pages. |
Status
enumThe meaning of a piece of feedback: badges, and later alerts and toasts. Status colors are for telling people what happened, not for actions; see Accent.
| Value | Description |
|---|---|
Neutral | No particular meaning (the default). |
Info | Information, such as "New" or "Beta". |
Success | Done or healthy, such as "Published". |
Warning | Needs attention, such as "In review" or "Expiring". |
Danger | Failed or blocked, such as "Error" or "Overdue". |
TabsVariant
enumHow Tabs draw their tab list.
| Value | Description |
|---|---|
Line | A line under the list, with the selected tab underlined (the default). |
Soft | The selected tab gets a soft accent background. |
Segmented | A segmented control: the tabs sit in a tray and the selected one is raised. |