Class: Protos::Card::Image

Inherits:
Protos::Component show all
Defined in:
lib/protos/card/image.rb

Instance Method Summary collapse

Methods inherited from Protos::Component

#initialize

Constructor Details

This class inherits a constructor from Protos::Component

Instance Method Details

#view_templateObject

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