Skip to content

OrigamDataText ​

<OrigamDataText> renders a definition description (<dd>) with an optional prepend / append zone (icon or avatar). It is the value half of OrigamDataList's avatar mode, but it is a public export and can be used on its own inside any <dl>.

vue
<template>
    <dl>
        <origam-data-title text="Status"/>
        <origam-data-text text="Active" prepend-icon="mdi-check-circle"/>
    </dl>
</template>

Rendered markup ​

html
<dd class="origam-data-text …">
    <span class="origam-data-text__prepend">…</span>   <!-- only if prepend* is set -->
    <span class="origam-data-text__content" data-no-activator="">…</span>
    <span class="origam-data-text__append">…</span>    <!-- only if append* is set -->
</dd>

The root carries the v-contrast directive, so the automatic foreground-contrast pass applies as it does on the other surfaces.

Props ​

Own props ​

PropTypeDefaultDescription
textstring | number—Row content. Required. Overridden by the default slot.

Adjacent props (IAdjacentProps) ​

PropTypeDescription
prependIconTIconIcon rendered in the prepend zone
appendIconTIconIcon rendered in the append zone
prependAvatarstringImage URL rendered as an OrigamAvatar before
appendAvatarstringImage URL rendered as an OrigamAvatar after

A zone is rendered only when it has content (icon, avatar, or the matching slot). density is forwarded to the nested OrigamAvatar / OrigamIcon.

Transversal props ​

GroupPropsComposable
Colorcolor, bgColoruseBothColor
DensitydensityuseDensity
Paddingpadding, paddingTop, paddingRight, paddingBottom, paddingLeft, paddingBlock, paddingInlineusePadding
Marginmargin, marginTop, marginRight, marginBottom, marginLeft, marginBlock, marginInlineuseMargin
Commonsid, class, style—

hoverColor / hoverBgColor were removed: the component never wired an isHover state, so they resolved to color / bgColor unconditionally.

Emits ​

EventPayloadFired when
click:prependMouseEventThe prepend zone is activated (click, or Enter/Space when it is focusable)
click:appendMouseEventThe append zone is activated, same conditions

A zone only becomes focusable (role="button", tabindex="0") when a listener for its event is attached — useAdjacent decides this from the presence of the handler, so a purely decorative icon stays out of the tab order.

Slots ​

SlotBindingsDescription
default—Replaces the row content
prepend—Replaces the prepend icon / avatar
append—Replaces the append icon / avatar

Unlike OrigamDataTitle, the default slot here receives no bindings — text is not passed back to the slot.

Styling ​

OrigamDataText ships no scoped stylesheet and declares no --origam-data-text---* token. Its appearance comes from whichever class the consumer or the parent applies: inside OrigamDataList, the list attaches origam-data-list__text, and the list's own SCSS reads --origam-data-list__text---font-size / -line-height / -letter-spacing / -color on that element. Standalone, style it through class / style or the transversal props above.

Usage ​

Multiple rows under one term ​

vue
<dl>
    <origam-data-title text="Contacts"/>
    <origam-data-text text="ada@example.com" prepend-icon="mdi-email"/>
    <origam-data-text text="+33 1 23 45 67 89" prepend-icon="mdi-phone"/>
</dl>

Actionable append zone ​

vue
<origam-data-text
        text="sk_live_…"
        append-icon="mdi-content-copy"
        @click:append="copy"
/>