Class: Shadcn::NavigationMenuItemComponent

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

Overview

Individual item in the navigation menu

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



18
19
20
# File 'app/components/shadcn/navigation_menu_item_component.rb', line 18

def call
  (:li, item_content, item_attributes)
end