Class: Primer::PopoverComponent::Heading
- Inherits:
-
ViewComponent::Slot
- Object
- ViewComponent::Slot
- Primer::PopoverComponent::Heading
- Defined in:
- app/components/primer/popover_component.rb
Instance Method Summary collapse
- #component ⇒ Object
-
#initialize(**kwargs) ⇒ Heading
constructor
A new instance of Heading.
Constructor Details
#initialize(**kwargs) ⇒ Heading
Returns a new instance of Heading.
62 63 64 65 66 |
# File 'app/components/primer/popover_component.rb', line 62 def initialize(**kwargs) @kwargs = kwargs @kwargs[:mb] ||= 2 @kwargs[:tag] ||= :h4 end |
Instance Method Details
#component ⇒ Object
68 69 70 |
# File 'app/components/primer/popover_component.rb', line 68 def component Primer::HeadingComponent.new(**@kwargs) end |