Skip to main content

Label
Ready

Labels are used to create text labels for items in an interface. Most commonly used inside other form components.

Open in new window
<duet-label for="identifier">Label text</duet-label>

Properties #

Property Attribute Description Type Default
for for ID of the component that the label is labelling. string undefined
margin margin Controls the margin of the component. "auto" | "none" | "small" "auto"
size size Controls the size of the label. "medium" | "small" "medium"
theme theme Theme of the label. "" | "default" | "turva" ""

Dependencies #

Used by #

Graph #

graph TD;
duet-input --> duet-label
duet-range-slider --> duet-label
duet-select --> duet-label
duet-textarea --> duet-label
duet-toggle --> duet-label
style duet-label fill:#f9f,stroke:#333,stroke-width:4px

Integration

For integration, event and theming guidelines, please see Using Components. This documentation explains how to implement and use Duet’s components across different technologies like Angular, React or Vanilla JavaScript.



Tutorials

Follow these practical tutorials to learn how to build simple page layouts using Duet’s CSS Framework, Web Components and other features:

Tutorials

Building Layouts

Tutorials

Using CLI Tools

Tutorials

Creating Custom Patterns

Tutorials

Server Side Rendering

Tutorials

Sharing Prototypes

Tutorials

Usage With Markdown


Troubleshooting

If you experience any issues while using a component, please head over to the Support page for more guidelines and help.