Class: PhlexKit::FieldTitle

Inherits:
BaseComponent show all
Defined in:
app/components/phlex_kit/field/field_title.rb

Overview

Label-looking title that is NOT a

Instance Method Summary collapse

Methods inherited from BaseComponent

#on

Constructor Details

#initialize(**attrs) ⇒ FieldTitle

Returns a new instance of FieldTitle.



6
# File 'app/components/phlex_kit/field/field_title.rb', line 6

def initialize(**attrs) = (@attrs = attrs)

Instance Method Details

#view_templateObject



7
8
9
# File 'app/components/phlex_kit/field/field_title.rb', line 7

def view_template(&)
  div(**mix({ class: "pk-field-title" }, @attrs), &)
end