Components/Navigation/Sidebar
Interactive docs page: https://wix-pages.com/design-system-documentation/#/component/sidebaritemnext
SidebarItemNext is a navigation action that reflects a single option in sidebar navigation list.
<SidebarNext/> navigationAdd a counter badge or other indication after the item's label using suffix prop.
An item normally takes its minimized state from the parent sidebar. Set minimized to render the collapsed, icon-only form regardless. It is the escape hatch for an item rendered across a bundle boundary, where the sidebar context does not resolve.
The prop hides the label; the rail width still comes from the container, so place the item in a narrow one to get the collapsed look. Always pair it with minimizedTooltipContent, because once the label is hidden the tooltip is the only thing naming the item. An item with no prefix renders nothing at all when minimized.
Control item's interaction with disabled prop. Disable item when it's unavailable, but has to remain visible.
Render action as any given HTML tag with as prop. For example it can be rendered as:
<a> - use when attributes like href, target, etc., are needed.
<Link> - use this react router item to have props like to, replace, etc.
All attributes will be passed to the rendered element.
Control item selection from Sidebar component referring to itemKey set value.
Truncate children item's text with isInQuickNavigation prop.
| Name | Type | Default | Description |
|---|---|---|---|
as | "button" | 'button' | Renders the item as another HTML tag or component. |
children | ReactNode | — | Sets the item's label. |
dataHook | string | — | Applied as data-hook HTML attribute that can be used in the tests. |
disabled | boolean | — | Indicates whether to display the item as disabled. |
itemKey | string | — | Sets a unique key for the item. The item is marked as selected when it matches the selectedKey of <SidebarNext/>, and the key is passed to onClick as the second argument. |
minimized | boolean | — | Renders the item in its collapsed form (icon only, with minimizedTooltipContent). Overrides the minimized state provided by the parent SidebarNext — needed when the item is rendered across a bundle boundary, where the context doesn't resolve. |
minimizedTooltipContent | ReactNode | — | Content of the tooltip shown when the sidebar is minimized. |
onClick | MouseEventHandler | — | A callback to be triggered on click. |
onMouseEnter | MouseEventHandler | — | A callback to be triggered on mouse enter. |
onMouseLeave | MouseEventHandler | — | A callback to be triggered on mouse leave. |
prefix | ReactNode | — | An element to appear at the start of the text. |
role | string | — | Defines one of the aria roles to provide semantic meaning to content. |
skin | "light" | "neutral" | "dark" | — | The skin of the item. Overrides the skin provided by the parent SidebarNext. |
suffix | ReactNode | — | An element/array of elements to appear at the end of the text. max number of elements to pass is 2. |
No testkit for this component — it doesn't expose a unidriver testkit.
Last updated: 21 October 2026