Edit in GitHubLog an issue

sp-label

Since: UXP 4.1, PS 22.0.0

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>
Copyright © 2021 Adobe. All rights reserved.