Skip to content

Commit

Permalink
add additional text field docs
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdholt committed May 29, 2020
1 parent 2287ae6 commit 33879d2
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ sidebar_label: fast-text-field
custom_edit_url: https://github.com/microsoft/fast-dna/edit/master/packages/web-components/fast-foundation/src/text-field/README.md
---

An implementation of a [text field](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input/text) as a form-connected web-component. The `fast-text-field` supports two visual apperances, outline and filled, with the control defaulting to the outline appearance.

## Applying Custom Styles

```ts
Expand All @@ -21,4 +23,10 @@ import { TextFieldStyles as styles } from "./text-field.styles";
},
})
export class FASTTextField extends TextField {}
```

## Usage

```html
<fast-text-field appearance="filled" placeholder="user@email.com">Email</fast-text-field>
```

0 comments on commit 33879d2

Please sign in to comment.