@yr/graphics-component
TypeScript icon, indicating that this package has built-in type declarations

9.0.0 • Public • Published

NPM Version Build Status

A base yr/component for svg/img graphics.

Usage

import  { Graphic } from '@yr/graphics-component';

// Create image element with reference to "/foo.png"
const img = <Graphic id={'foo'} type={'img'}/>

// Create svg element with reference to inlined "#foo" svg symbol
// (with fallback to png at "/www/assets/images/foo.png")
const img = <Graphic id={'foo'} rootImagePath={'/www/assets/images'}/>

/@yr/graphics-component/

    Package Sidebar

    Install

    npm i @yr/graphics-component

    Weekly Downloads

    38

    Version

    9.0.0

    License

    MIT

    Unpacked Size

    24 kB

    Total Files

    11

    Last publish

    Collaborators

    • yr
    • saegrov