[Feature propose]
Allow user to pass custom image component to image props in the EuiCard.
The use case is that if a user want to have progressive image loading, it can be simply just pass the custom component to the image props.
One possible approach to achieve this that I could think off is to check the type of the image props and decide whether to render the normal <img /> or the custom component that the user has passed.
|
let imageNode; |
|
if (image && layout === 'vertical') { |
|
imageNode = <img className="euiCard__image" src={image} alt="" />; |
|
} |
I can help out this feature if this proposal is acceptable!
[Feature propose]
Allow user to pass custom image component to
imageprops in theEuiCard.The use case is that if a user want to have progressive image loading, it can be simply just pass the custom component to the
imageprops.One possible approach to achieve this that I could think off is to check the type of the
imageprops and decide whether to render the normal<img />or the custom component that the user has passed.eui/src/components/card/card.tsx
Lines 230 to 233 in 0e80f04
I can help out this feature if this proposal is acceptable!