Package Exports
- @9d8/maily-render
Readme
@maily-to/render
Transform Maily content into HTML email templates.
Install
Install maily from your command line.
pnpm add @maily-to/renderGetting 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