Skip to main content
LocalTapiola Turva

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". string "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". string "medium"
theme theme Theme of the caption. Can be one of: "default", "turva". string ""

Dependencies #

Used by #

Graph #

graph TD;
  duet-choice --> duet-caption
  style duet-caption fill:#f9f,stroke:#333,stroke-width:4px


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