Skip to content

RowFormat experimental ​

RowFormat renders a single v-row containing one v-col per element in the elements array. Each column holds a <label> with configurable text, class, and style. A shared color prop applies a Vuetify text-colour class to every label.

It is used internally by Callout to lay out its title/value columns.

Usage ​

html
<ue-row-format
  :elements="[
    { text: 'Revenue',  col: { cols: 8 } },
    { text: '$12,400',  col: { cols: 4 }, style: { 'font-size': '1.5rem' } },
  ]"
  color="success"
/>

Props ​

PropTypeDefaultDescription
elementsArray[]Array of column definitions. See Element object.
colorString''Vuetify colour token applied as text-{color} to every label. Empty string applies no class.

Element object ​

Each entry in elements is a plain object:

KeyTypeRequiredDescription
textStringYesLabel text content
colObjectNoProps forwarded to v-col (e.g. { cols: 6, md: 4 })
classStringNoAdditional CSS classes on the <label>
styleObjectNoInline styles on the <label> (e.g. { 'font-size': '1.5rem' })

Colour logic ​

When color is set to a non-empty string the class text-{color} is added to every <label>. Individual columns cannot override this — use the class key on an element only for non-colour classes.