Edit in GitHubLog an issue

sp-label

Since: UXP v4.1

Renders a text label. Can also be used to add a label to many Spectrum UXP UI elements when using the slot="label" attribute.

See:

Example

Copied to your clipboard
<sp-label>This is a label</sp-label>

Attributes

You can indicate that a label is required by using the isrequired="true" attribute.A

Copied to your clipboard
1<sp-textfield>
2 <sp-label slot="label" isrequired="true">This is a label</sp-label>
3</sp-textfield>
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2023 Adobe. All rights reserved.