Skip to main content

Caption
New

Captions are used as brief explanations accompanying an illustration, form element, or similar. Caption text is smaller than the recommended size for general reading.

Open in new window
<duet-caption>Medium caption text</duet-caption>
<duet-caption size="small">Small caption text</duet-caption>

Properties #

Property Attribute Description Type Default
margin margin Controls the margin of the component. Can be one of: "auto", "none". "auto" or "none" "auto"
selected selected Selected state of the caption. Used inside Choice component. boolean false
size size Controls the size of the caption. Can be one of: "medium", "small". "medium" or "small" "medium"
theme theme Theme of the caption. Can be one of: "default", "turva". "" or "default" or "turva" ""

Dependencies #

Used by #

Graph #

graph TD;
duet-choice --> duet-caption
duet-textarea --> duet-caption
style duet-caption 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


Troubleshooting

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