For the complete documentation index, see llms.txt. This page is also available as Markdown.

Sidebar

Classes for the Sidebar component.

Overview

The Sidebar component in VulcanUI features a hierarchical structure that mirrors the actual HTML DOM. This page provides a comprehensive guide to all available BEM classes for styling and customizing the Sidebar.

The Sidebar component follows a strict hierarchical structure with the root container ds-sidebar__viewport containing all sub-elements. Each level serves a specific purpose and can be styled independently.

<aside class="ds-sidebar__viewport">
  <!-- All Sidebar content nested here -->
</aside>

Class hierarchy

The hierarchical class structure is as follows. Modifiers are shown in parentheses.

The following images map the Sidebar classes by number. This helps you target the exact part you want in your custom CSS stylesheet.

Outer

  1. ds-sidebar__viewport

  2. ds-sidebar__wrapper (same size as ds-sidebar__viewport)

    1. ds-sidebar__header

    2. ds-sidebar__body

    3. ds-sidebar__footer-wrapper

The parent class for the sidebar header is ds-sidebar__header.

  1. ds-logo

    1. ds-logo__image

  2. ds-sidebar__toggle

Body

The parent class for the sidebar body is ds-sidebar__body.

  1. ds-sidebar__item

  2. ds-accordion

    1. ds-accordion__toggle

    2. ds-accordion__chevron

      1. ds-accordion__chevron-icon

    3. ds-accordion__content

      1. ds-accordion__item

The parent class for the footer is ds-sidebar__footer-wrapper.

  1. ds-sidebar__footer

    1. ds-sidebar__footer-item

Rendered DOM

This is the raw Sidebar HTML DOM as loaded in the application, with all classes shown in this section:

Last updated

Was this helpful?