Baseweb: [Card] Expose `srcset` attribute for <HeaderImage /> in <Card />

Created on 25 Dec 2019  路  4Comments  路  Source: uber/baseweb

Feature description

In addition to the src attribute on the <Card /> component, it would be helpful to pass an optional srcset attribute (mdn). For example

<Card
  srcset={'https://source.unsplash.com/user/erondu/700x400 w400, https://source.unsplash.com/user/erondu/700x1200 w1200'}
  headerImage={'https://source.unsplash.com/user/erondu/700x400'}
>
  Contents
</Card>
enhancement help wanted

All 4 comments

@jonsadka thank you for opening this issue! any chance you can help us add this feature by submitting a PR?

@gergelyke Can I work on this?
I'm using baseweb at work, and I found this library wondeful. So I'm very interesting if I have any chance to work on it

yes, please do! 馃 - also, may I ask you to let us know how you use base web here? https://github.com/uber/baseweb/issues/1889

Sorry just seeing this. @nbdn let me know if I can help in any way

Was this page helpful?
0 / 5 - 0 ratings