Class: PhlexKit::ToastTitle
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- PhlexKit::ToastTitle
- Defined in:
- app/components/phlex_kit/toast/toast_title.rb
Overview
Toast headline. The data-slot lets the toaster fill it when cloning a skeleton. See toast_region.rb.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ ToastTitle
constructor
A new instance of ToastTitle.
- #view_template ⇒ Object
Methods inherited from BaseComponent
Constructor Details
#initialize(**attrs) ⇒ ToastTitle
Returns a new instance of ToastTitle.
5 6 7 |
# File 'app/components/phlex_kit/toast/toast_title.rb', line 5 def initialize(**attrs) @attrs = attrs end |
Instance Method Details
#view_template ⇒ Object
9 10 11 |
# File 'app/components/phlex_kit/toast/toast_title.rb', line 9 def view_template(&) div(**mix({ class: "pk-toast-title", data: { slot: "title" } }, @attrs), &) end |