Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
primogenial
/
languages
/
wp-content
/
plugins
/
elementor
/
app
/
assets
/
js
/
ui
/
card
:
card-image.js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
import './card.scss'; export default function CardImage( props ) { const image = <img src={ props.src } alt={ props.alt } className="eps-card__image" loading="lazy" />; return ( <figure className={ `eps-card__figure ${ props.className }` }> { image } { props.children } </figure> ); } CardImage.propTypes = { className: PropTypes.string, src: PropTypes.string.isRequired, alt: PropTypes.string.isRequired, children: PropTypes.any, }; CardImage.defaultProps = { className: '', };