Class: Shadcn::MenubarTriggerComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- Shadcn::MenubarTriggerComponent
- Defined in:
- app/components/shadcn/menubar_trigger_component.rb
Overview
Menubar Trigger component Button that opens the menu dropdown
Constant Summary collapse
- BASE_CLASSES =
"flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground"
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
9 10 11 |
# File 'app/components/shadcn/menubar_trigger_component.rb', line 9 def call content_tag(:button, content, trigger_attributes) end |