# EmailAddress — SvelteKit UI

Package: sveltekit-ui 1.1.94

Page: https://www.sveltekit-ui.com/components/email_address

Category: Data & content

displays an email address with quick copy and mailto actions

Public component import: `EmailAddress`

Public manager import: `create_email_address_manager`

## Usage

```svelte
<script>
  // Import the shared stylesheet once in your application's root layout.
  import "sveltekit-ui/style.css"
  import { EmailAddress, create_email_address_manager } from "sveltekit-ui"

  const manager = create_email_address_manager({ val: "hello@example.com" })
</script>

<EmailAddress {manager} />
```

## Configuration

### `val`

- type: string
- default: null
- description: the email address value

## Methods

### `mailto()`

- description: opens the user's default mail client with a new message to the email address
- parameters:
- returns: void

## Returned state

### `val`

- type: string
- description: the current email address value

### `is_valid`

- type: boolean
- description: true if the string is syntactically a valid email address

### `copy_button_manager`

- type: object
- description: button manager to copy the email address to the clipboard

### `mail_to_button_manager`

- type: object
- description: button manager to open 'mailto' link for the email address
