Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 1st-gen/packages/field-label/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ import { FieldLabel } from '@spectrum-web-components/field-label';
Field labels can be associated with form elements by using the `for` attribute, which should reference the `id` of the related input element.

```html demo
<sp-field-label for="email">Email address</sp-field-label>
<sp-textfield id="email" placeholder="user@adobe.com"></sp-textfield>
<sp-field-label for="product-name">Product name</sp-field-label>
<sp-textfield id="product-name" placeholder="Enter product name"></sp-textfield>
```

Field labels can also be used to label a group of related inputs:
Expand Down
Loading