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
<sp-textfield>
<sp-label slot="label" isrequired="true">This is a label</sp-label>
</sp-textfield>
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.