Class: Shadcn::NavigationMenuContentComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- Shadcn::NavigationMenuContentComponent
- Defined in:
- app/components/shadcn/navigation_menu_content_component.rb
Overview
Content area that appears when a navigation trigger is activated
Constant Summary collapse
- CONTENT_CLASSES =
[ "left-0 top-0 w-full", "data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out", "data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out", "data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52", "data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52", "md:absolute md:w-auto" ].join(" ").freeze
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
15 16 17 |
# File 'app/components/shadcn/navigation_menu_content_component.rb', line 15 def call content_tag(:div, content, content_attributes) end |