Class: Shadcn::MenubarSubContentComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- Shadcn::MenubarSubContentComponent
- Defined in:
- app/components/shadcn/menubar_sub_content_component.rb
Overview
Menubar Sub Content component Container for submenu items
Constant Summary collapse
- BASE_CLASSES =
"z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95"
Instance Attribute Summary
Attributes inherited from BaseComponent
#class_name, #data, #html_options
Instance Method Summary collapse
Methods inherited from BaseComponent
Methods included from Rails::Helpers::ClassNameHelper
Constructor Details
This class inherits a constructor from Shadcn::BaseComponent
Instance Method Details
#call ⇒ Object
25 26 27 |
# File 'app/components/shadcn/menubar_sub_content_component.rb', line 25 def call content_tag(:div, sub_content, content_attributes) end |