* feat: migrated the navigation metadata from inline MD title decorations to frontmatter * fix: fixed frontmatter metadate for api-table MDs * fix: fixed frontmatter eslint issue
44 lines
958 B
Markdown
44 lines
958 B
Markdown
---
|
|
parts:
|
|
- Input Email
|
|
- Overview
|
|
title: 'Input Email: Overview'
|
|
eleventyNavigation:
|
|
key: 'Input Email: Overview'
|
|
order: 10
|
|
parent: Input Email
|
|
title: Overview
|
|
---
|
|
|
|
# Input Email: Overview
|
|
|
|
A web component based on the generic text input field. Its purpose is to provide a way for users to fill in an email.
|
|
|
|
```js script
|
|
import { html } from '@mdjs/mdjs-preview';
|
|
import '@lion/ui/define/lion-input-email.js';
|
|
```
|
|
|
|
```js preview-story
|
|
export const main = () => {
|
|
return html` <lion-input-email label="Email" name="email"></lion-input-email> `;
|
|
};
|
|
```
|
|
|
|
## Features
|
|
|
|
- Based on our [input](../input/overview.md)
|
|
- Makes use of email [validators](../../fundamentals/systems/form/validate.md) with corresponding error messages in different languages
|
|
- IsEmail (default)
|
|
|
|
## Installation
|
|
|
|
```bash
|
|
npm i --save @lion/ui
|
|
```
|
|
|
|
```js
|
|
import { LionInputEmail } from '@lion/ui/input-email.js';
|
|
// or
|
|
import '@lion/ui/define/lion-input-email.js';
|
|
```
|