Class: Shadcn::MenubarShortcutComponent

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

Overview

Menubar Shortcut component Displays keyboard shortcuts next to menu items

Constant Summary collapse

BASE_CLASSES =
"ml-auto text-xs tracking-widest text-muted-foreground"

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



9
10
11
# File 'app/components/shadcn/menubar_shortcut_component.rb', line 9

def call
  (:span, content, shortcut_attributes)
end