We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee4d624 commit f1abfcdCopy full SHA for f1abfcd
1st-gen/packages/field-label/README.md
@@ -29,8 +29,8 @@ import { FieldLabel } from '@spectrum-web-components/field-label';
29
Field labels can be associated with form elements by using the `for` attribute, which should reference the `id` of the related input element.
30
31
```html demo
32
-<sp-field-label for="email">Email address</sp-field-label>
33
-<sp-textfield id="email" placeholder="[email protected]"></sp-textfield>
+<sp-field-label for="product-name">Product name</sp-field-label>
+<sp-textfield id="product-name" placeholder="Enter product name"></sp-textfield>
34
```
35
36
Field labels can also be used to label a group of related inputs:
0 commit comments