Skip to content

OVerticalAppBar Component

A customizable vertical app bar component that provides a side navigation panel with support for nested items, expandable sections, and various display options.

Overview

The OVerticalAppBar component provides:

  • Vertical navigation panel with customizable width and height
  • Support for nested navigation items with expandable sections
  • Logo and title display with click handlers
  • Multiple positioning options (left/right)
  • Expandable/collapsible behavior
  • Customizable styling and transitions
  • Overlay backdrop support

When to Use

Use the OVerticalAppBar component when you need to:

  • Create a side navigation panel for your application
  • Display hierarchical navigation items
  • Implement a collapsible sidebar
  • Show application branding (logo and title)
  • Create a responsive navigation system

Key Features

  • Positioning and Layout:

    • Left or right side positioning
    • Fixed width (20rem) with responsive behavior
    • Floating or fixed positioning
    • Sticky positioning option
    • Elevation/shadow support
  • Navigation Features:

    • Hierarchical navigation items
    • Expandable/collapsible sections
    • Active item highlighting
    • Multi-level navigation support
    • Icon support for navigation items
    • Chevron indicators for expandable items
  • Header Section:

    • Logo display with optional rounded style (supports SVG strings or image URLs)
    • Title display
    • Close button
    • Fixed prepend height (4rem)
    • Click handlers for logo and title
  • Display Options:

    • Expand on hover
    • Expand on click
    • Persist icons when collapsed
    • Overlay backdrop support
    • Smooth transitions (0.3s)
  • Styling Customization:

    • Fixed background color (#f2f2f2)
    • Fixed title color (#111)
    • Fixed logo and icon sizes (2.5rem)
    • Elevation control
    • Customizable via CSS classes and slots
  • Interactive Features:

    • Item click handling
    • Logo click handling
    • Title click handling
    • Close button handling
    • Expand/collapse animations

Props

PropTypeDefaultDescription
elevationBooleantrueWhether to show elevation/shadow
floatingBooleantrueWhether the app bar should float
stickyBooleantrueWhether the app bar should be sticky
logoString''URL or SVG string for the logo
roundedLogoBooleanfalseWhether to show rounded logo
titleString''Title text
showCloseButtonBooleantrueWhether to show close button
modelValueBooleantrueControls visibility of the app bar (v-model)
persistIconsOnHideBooleantrueWhether to show icons when collapsed
expandOnHoverBooleanfalseWhether to expand on hover
expandOnClickBooleantrueWhether to expand on click
overlayBooleantrueWhether to show overlay backdrop
positionString'left'Position of the app bar ('left' or 'right')
itemsArray[]Navigation items array
activeItemString''Currently active item (v-model)
showChevronBooleantrueWhether to show chevron icons
multiExpandBooleantrueWhether to allow multiple expanded sections

Events

EventPayloadDescription
logoClick-Emitted when logo is clicked
closeClick-Emitted when close button is clicked
titleClick-Emitted when title is clicked
update:modelValueBooleanEmitted when visibility changes (v-model)
update:activeItemStringEmitted when active item changes (v-model)

Slots

SlotDescription
defaultMain content slot
prependHeader section slot
logoLogo slot with click handler
titleTitle slot with click handler
closeBtnClose button slot with click handler
contentNavigation items content slot
appendFooter section slot

API Reference →

View Code →