This package has been deprecated

Author message:

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

@fdmg/ts-react-image
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

fdmg-ts-react-image-button

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"/>

Readme

Keywords

none

Package Sidebar

Install

npm i @fdmg/ts-react-image

Weekly Downloads

0

Version

1.0.6

License

ISC

Unpacked Size

147 kB

Total Files

13

Last publish

Collaborators

  • dirk-straat
  • willem_liu
  • sapulidi