Class: Shadcn::CommandComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- Shadcn::CommandComponent
- Defined in:
- app/components/shadcn/command_component.rb
Overview
Command component - a command palette for searching and selecting items Matches shadcn/ui Command component (cmdk pattern)
Constant Summary collapse
- BASE_CLASSES =
"flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-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
32 33 34 |
# File 'app/components/shadcn/command_component.rb', line 32 def call content_tag(:div, command_content, **command_attributes) end |