Class: Protos::Card::Image
- Inherits:
-
Protos::Component
- Object
- Phlex::HTML
- Protos::Component
- Protos::Card::Image
- Defined in:
- lib/protos/card/image.rb
Instance Method Summary collapse
-
#view_template ⇒ Object
DOCS: A container for an image for on a card.
Methods inherited from Protos::Component
Constructor Details
This class inherits a constructor from Protos::Component
Instance Method Details
#view_template ⇒ Object
DOCS: A container for an image for on a card. This matches the examples on daisyui which will style the <figure> tag depending on whether image-overlay is present on the card.
10 11 12 |
# File 'lib/protos/card/image.rb', line 10 def view_template(&) figure(**attrs, &) end |