Sidebar

inprogress

    Overview

    When to use

    • Provide navigation options within an application layout.
    • Group related functionalities or user actions in a vertical list.
    • Offer quick access to different sections or features, often used alongside a main content area.

    When to consider an alternative

    t.b.d.


    Component

    Default

    Displays a vertical sidebar with optional navigation items. Use the Sidebar.Item component to define individual items within the sidebar.
    The Sidebar has two navigation sections: product-navigation and user-navigation. The product-navigation section is used for the main navigation items, while the user-navigation section is used for user-related navigation items. Pass the usernav prop to the Sidebar.Item component to place it in the user-navigation section.


    Properties

    Default

    PropertyTypeRequiredDefault
    utilClassNamesStringfalse-
    childrenNodefalse-
    sidebarRefShape
    { "current": "Any" }
    false-
    openBoolfalsetrue
    setOpenFuncfalse-

    Sidebar.Item

    PropertyTypeRequiredDefault
    sidebarItemRefShape
    { "current": "Any" }
    false-
    iconNodefalse-
    labelStringfalse-
    onClickFuncfalse-
    openBoolfalse-
    usernavBoolfalse-