Installation
Install @unmail/react or @unmail/vue in your project.
React
bash
pnpm add @unmail/reactbash
bun add @unmail/reactbash
npm install @unmail/reactbash
yarn add @unmail/reactPeer dependencies
@unmail/react requires the following peer dependencies:
| Package | Version |
|---|---|
react | >=18.0.0 |
react-dom | >=18.0.0 |
Optional peer dependencies (only needed if you use the corresponding features):
| Package | Feature |
|---|---|
prettier | render({ pretty: true }) |
html-to-text | render({ plainText: true }) |
Vue
bash
pnpm add @unmail/vuebash
bun add @unmail/vuebash
npm install @unmail/vuebash
yarn add @unmail/vuePeer dependencies
@unmail/vue requires the following peer dependencies:
| Package | Version |
|---|---|
vue | >=3.3.0 |
Optional peer dependencies:
| Package | Feature |
|---|---|
prettier | render(component, props, { pretty: true }) |
html-to-text | render(component, props, { plainText: true }) |