@microprofile/svg-render
v0.0.5
Published
适用于Taro(React)微信小程序的svg渲染器, 可以直接使用svg标签,对Agent开发更加友好。
Downloads
678
Readme
适用于Taro(React)微信小程序的svg渲染器
可以直接使用svg标签,对Agent开发更加友好
安装
pnpm install @microprofile/svg-render
# 或者
# npm install @microprofile/svg-render使用方式
import SvgRenderer from '@microprofile/svg-render'
<SvgRender mode='aspectFit' className='w-10 h-10 border-2'>
<svg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'>
<circle cx='50' cy='50' r='50' fill='red' />
</svg>
</SvgRender>