Skip to content
This repository was archived by the owner on May 7, 2020. It is now read-only.

FDMediagroep/fdmg-ts-react-image

Repository files navigation

DEPRECATED ❗ : Superseded by @fdmg/design-system. See: https://github.com/FDMediagroep/fd-design-system

fdmg-ts-react-image

Build Status Coverage Status npm version Greenkeeper badge

ReactJS Image component. This component renders an image.

Installation

  • Run npm i --save-dev @fdmg/ts-react-image

or

  • Run yarn add @fdmg/ts-react-image --dev

Usage

TypeScript

import * as React from 'react';
import Img from 'fdmg-ts-react-image';

export default class foo {
    public state: any;
    public props: any;

    constructor(props: any) {
        super(props);
        this.props = props;
    }

    render() {
        return (
            <Img
                src={"img/button.svg"} 
                className="image-btn btn"
                alt="Special button"
            />
        );
    }
}

Resulting HTML

    <img src="img/button.svg" alt="Special button" class="image-btn btn"/>

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •