Replies: 1 comment 1 reply
-
I'd recommend doing this by making sources with a renders_many :sources, ->(**params) { tag.source(**params) } I imagine params passed to the initializer for the component would dictate how the I haven't actually seen the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The HTML
<picture>
element seems potentially ripe for being wrapped up as a view component…name-of-image
) and the type (e.g.webp
) if you’re providing fallbacks for newer formatsHas anyone made a component(s) around this they’d share?
Beta Was this translation helpful? Give feedback.
All reactions