Class: Shadcn::SidebarMenuComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/shadcn/sidebar_menu_component.rb

Overview

SidebarMenu component - menu container for sidebar items

Constant Summary collapse

BASE_CLASSES =
"flex w-full min-w-0 flex-col gap-1"

Instance Attribute Summary

Attributes inherited from BaseComponent

#class_name, #data, #html_options

Instance Method Summary collapse

Methods inherited from BaseComponent

#content, #initialize

Methods included from Rails::Helpers::ClassNameHelper

#cn

Constructor Details

This class inherits a constructor from Shadcn::BaseComponent

Instance Method Details

#callObject



12
13
14
# File 'app/components/shadcn/sidebar_menu_component.rb', line 12

def call
  (:ul, menu_content, menu_attributes)
end