r2vnode
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

r2vnode

Transforms Vue VNode to simple React VNode. This gives us ability to generate svg's with satori with vue components/jsx.

Usage

  1. Install

    yarn add r2vnode
  2. Write jsx and transform with vue function

    import satroi from 'satori'
    import { vue } from 'r2vnode'
    
    const message = 'Hello from Vue!'
    
    const svg = await satori(
        vue(
            <section>
                <h1>{message}</h1>
    
                <p>something like this !</p>
            </section>
        ),
        satoriOptions
    )

Readme

Keywords

none

Package Sidebar

Install

npm i r2vnode

Weekly Downloads

0

Version

0.0.2

License

none

Unpacked Size

7.33 kB

Total Files

5

Last publish

Collaborators

  • logotip4ik