blob: 7f58ee5b9fe866fbdb551ed872ad345fa6c68b39 (
plain) (
tree)
|
|
import * as React from 'react';
export interface FilledImageProps {
src: string;
}
export const FilledImage = (props: FilledImageProps) => (
<div
style={{
width: '100%',
height: '100%',
objectFit: 'cover',
backgroundImage: `url(${props.src})`,
backgroundRepeat: 'no-repeat',
backgroundPosition: 'center',
backgroundSize: 'cover',
}}
/>
);
|