LogoLogo
  • What is UDML?
  • Document structure
    • <components>
    • <imports>
    • <instructions>
    • <meta>
    • <styles>
    • <tokens>
    • <mappings>
    • <screens>
  • Directives
    • ai-hint
    • <data> Directive Specification
    • <interaction> Directive
    • <layer> Directive
    • <repeat> Directive
    • <responsive>
    • selection
    • <tracking> Directive
  • Components
    • Layout
      • <accordion> Component
      • <box> Component
      • <column> Component
      • <divider>
      • <grid> Component
      • <row> Component
    • Navigation
      • <breadcrumbs> Component
      • <pagination> Component
      • <tab> Component
      • <tabs> Component
    • Text & Display
      • <avatar>
      • <heading>
      • <icon>
      • <image>
      • <label>
      • <text>
      • <video>
    • Controls & Input
      • <button>
      • <checkbox>
      • <input> Component
      • <radio>
      • <select>
      • <slider>
      • <stepper>
      • <switch>
      • <textarea>
    • Forms
      • <form> Component
      • <formField> Component
      • <formGroup> Component
    • Data Collections
      • <dataColumn> Component
      • <dataTable> Component
      • <list> Component
      • <timeline> Component
      • <treeView> Component
    • Data Visualization
      • <chart> Component
      • <summary> Component
    • Modals
      • <dialog> Component
      • <modal> Component
      • <popover> Component
      • <toast> Component
      • <tooltip> Component
  • Prompting Guides
    • Prompting AI Developer Tools with UDML
    • Working with UDML in an Existing Codebase
  • Contributing to UDML
Powered by GitBook
On this page
  • The <row> component arranges its children horizontally in a flex container. It provides control over horizontal and vertical alignment, spacing, and wrapping behavior.
  • 🛠 Attributes
  • ✅ Allowed Content
  • 💡 Examples
  • 🧩 AI Interpretation Guidelines
Edit on GitHub
  1. Components
  2. Layout

<row> Component

The <row> component arranges its children horizontally in a flex container. It provides control over horizontal and vertical alignment, spacing, and wrapping behavior.

🛠 Attributes

Attribute
Type
Required
Description

align

string

No

Vertical alignment of items (start, center, end, stretch, baseline)

justify

string

No

Horizontal alignment of items (start, center, end, space-between, space-around, space-evenly)

gap

string

No

Spacing between items (e.g., 8px, 1rem)

wrap

boolean

No

Allow items to wrap to next line (true, false)

reverse

boolean

No

Reverse the order of items (true, false)

height

string

No

Height of the row (e.g., 100%, auto)

✅ Allowed Content

Any valid UDML components or elements.

💡 Examples

Basic Row

<row gap="16px">
  <button>First</button>
  <button>Second</button>
  <button>Third</button>
</row>

Centered Row with Wrapping

<row 
  align="center"
  justify="center"
  gap="8px"
  wrap="true"
>
  <box width="200px">Item 1</box>
  <box width="200px">Item 2</box>
  <box width="200px">Item 3</box>
</row>

Space Between Row

<row justify="space-between" align="center">
  <text>Left Content</text>
  <row gap="8px">
    <button>Action 1</button>
    <button>Action 2</button>
  </row>
</row>

🧩 AI Interpretation Guidelines

  • Generate a flex container with flex-direction: row

  • Apply specified alignment and justification

  • Add gap between items if specified

  • Enable wrapping if wrap="true"

  • Reverse order if reverse="true"

  • Maintain proper spacing and alignment in nested structures


Previous<grid> ComponentNextNavigation

Last updated 2 months ago