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 <list> component displays a vertically stacked collection of items, often interactive or stylized. Use <listItem> for individual entries.
  • 🛠 Attributes
  • ✅ Allowed Content
  • 💡 Examples
  • 🧩 AI Interpretation Guidelines
Edit on GitHub
  1. Components
  2. Data Collections

<list> Component

The <list> component displays a vertically stacked collection of items, often interactive or stylized. Use <listItem> for individual entries.

🛠 Attributes

Attribute
Type
Required
Description

variant

string

No

unordered, ordered, or navigation

divider

boolean

No

Whether to show a separator between items

iconAlign

string

No

left, right (for nav or icon lists)

bind

string

No

Path to a data array to loop over

ai-hint

string

No

Describes the type of list (e.g., 'menu', 'task list')

✅ Allowed Content

elements.

💡 Examples

Navigation list

<list variant="navigation">
  <listItem icon="home">Home</listItem>
  <listItem icon="settings">Settings</listItem>
</list>

🧩 AI Interpretation Guidelines

  • Render as <ul>, <ol>, or nav depending on variant.

  • Use data binding (bind) to loop over and render items.

  • If divider is true, insert separators between items.


Previous<dataTable> ComponentNext<timeline> Component

Last updated 2 months ago