Layout scaffolding for Web apps.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

19 regels
287 B

  1. import {FC} from 'react';
  2. export interface ImageProps {
  3. src?: string;
  4. alt?: string;
  5. style?: React.CSSProperties;
  6. }
  7. export const Image: FC<ImageProps> = ({ src, alt, style, }) => (
  8. <img
  9. src={src}
  10. alt={alt}
  11. style={{
  12. ...style,
  13. width: '100%',
  14. }}
  15. />
  16. )