@maily-to/render
TypeScript icon, indicating that this package has built-in type declarations

0.0.9 • Public • Published

@maily-to/render
Transform Maily content into HTML email templates.

Get Maily Editor


Install

Install maily from your command line.

pnpm add @maily-to/render

Getting started

Convert React components into a HTML string.

import { renderSync } from '@maily-to/render';

const html = renderSync({
  type: 'doc',
  content: [
    {
      type: 'paragraph',
      content: [
        {
          type: 'text',
          text: 'Hello World!',
        },
      ],
    },
  ],
});

Contributions

Feel free to submit pull requests, create issues, or spread the word.

License

MIT © Arik Chakma

Readme

Keywords

Package Sidebar

Install

npm i @maily-to/render

Weekly Downloads

99

Version

0.0.9

License

MIT

Unpacked Size

38.3 kB

Total Files

7

Last publish

Collaborators

  • arikchakma