Skip to content

Sidebar

Sidebar components are used to provide a collapsible navigation menu that can be toggled open or closed. They are typically used for site navigation, allowing users to access different sections of the application.

Loading Code Block...

To get started, install Butterfly DS via aqua:

Loading Code Block...
Loading Code Block...
Loading Code Block...

PropsDefaultTypeDescription
sidebarHeader{}objectConfiguration for the sidebar header section
menu[]arrayAn array of objects representing the sidebar menu items.
sidebarFooter{}objectConfiguration for the sidebar footer section
indentedSidebarfalsebooleanWhether the sidebar should have an indented layout.
PropsDefaultTypeDescription
title-stringThe title text for the sidebar header.
description-stringThe description text for the sidebar header.
variantside-by-sideside-by-side | image | stackedThe variant style for the sidebar header. Options include 'default', 'image', and 'dropdown'.
hasDropdownfalsebooleanWhether the sidebar header has a dropdown menu.
dropdownOptions[]arrayAn array of objects representing the dropdown options in the sidebar header. Each object should have a 'label' and 'value'.
dropdownPlaceholderSelect an optionstringThe placeholder text for the dropdown in the sidebar header.
image-stringThe logo URL for the sidebar header.
PropsDefaultTypeDescription
sectionLabel-stringThe label text for the menu section.
children[]arrayAn array of objects representing the menu items. Each object should have a 'title', 'url', and optionally 'icon' and 'active' properties.
PropsDefaultTypeDescription
variantlistlist | side-by-side | imageThe variant style for the sidebar footer.
list[]arrayAn array of objects representing the footer menu items. Each object should have a 'title' and 'url'.
icon
icon icon icon icon