Class: Shadcn::EmptyTitleComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- Shadcn::EmptyTitleComponent
- Defined in:
- app/components/shadcn/empty_title_component.rb
Overview
Empty Title component
Constant Summary collapse
- BASE_CLASSES =
"text-lg font-semibold"
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
8 9 10 |
# File 'app/components/shadcn/empty_title_component.rb', line 8 def call content_tag(:h3, content, class: merge_classes(BASE_CLASSES), **.merge(build_data)) end |