Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ghandic committed Aug 22, 2024
1 parent 3d49df5 commit a1a8dec
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ This package is ideal for developers who want to generate email links with rich

## Installation

```shell
npm install react-mailto
```

<!-- TODO: Uncomment once JSR works for JSX -->
<!-- Install the package via deno, npm, yarn, pnpm or bun: -->

Expand All @@ -42,7 +46,7 @@ To create a mailto link with a subject and body content, use the `MailTo` compon

```tsx
import React from 'react';
import { MailTo, MailToBody, MailToTrigger } from 'package-name';
import { MailTo, MailToBody, MailToTrigger } from '@slalombuild/react-mailto';

const App = () => (
<MailTo to="[email protected]" subject="Hello World">
Expand All @@ -68,7 +72,7 @@ For more complex scenarios, such as including CC and BCC recipients, or enabling

```tsx
import React from 'react';
import { MailTo, MailToBody, MailToTrigger } from 'package-name';
import { MailTo, MailToBody, MailToTrigger } from '@slalombuild/react-mailto';

const App = () => (
<MailTo
Expand Down

0 comments on commit a1a8dec

Please sign in to comment.