Skip to content

cksal0805/render-svg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

renderSvg

This library helps you render svg in a react.

install

npm i @yoondumbo/render-svg

or

yarn add @yoondumbo/render-svg

example

import React from 'react';
import { RenderSvg } from  '@yoondumbo/render-svg';

function Example() {
  const url = "s3:sample/sample.svg"
  return (
    <RenderSvg url={url}>
  )
}

or

DivertedImageRendering is available if the image extension is not svg. This package helps you render generic img elements if they are not svg

import React from 'react';
import { DivertedImageRendering } from '@yoondumbo/render-svg';

function Example() {
  const urls = ["s3:sample/sample.png", "s3:sample/sample.svg"]
  return urls.map((_, img) => (
    <DivertedImageRendering url={img} key={img} />
  ))
}

About

svg 렌더링을 도와 주는 라이브러리

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published