Skip to content
Discussion options

You must be logged in to vote

Finally got around to this, apologies for the wait! Here you go.

The sources and the img are lambda slots that generate the corresponding tags. Note that the interface for this implementation is pretty liberal - any params you specify will be passed to the tag helpers. If you wanted to have a more advanced implementation that validates the srcset param among others, you may want to make components for source and img to allow for that.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@boardfish
Comment options

Answer selected by joelhawksley
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants