vwf .

API Reference

Complete API documentation for components, utilities, and framework core

List

Flexible list component for navigation menus, item lists, and content organization

🔧 Props

PropertyTypeDefaultDescription
items*Array-Array of list items (strings or objects)
itemTemplateFunctionundefinedCustom render function for each item
onItemClickFunctionundefinedClick handler: (item, index) => void
variantstring'default''default', 'navigation', 'bordered', 'compact'
dividersbooleanfalseShow dividers between items
classstring-Additional CSS classes

💻 Examples

Simple List

return List({
  items: ['Item 1', 'Item 2', 'Item 3']
})

▶️ Live Preview

  • Item 1
  • Item 2
  • Item 3

💡 Click "Edit Code" to modify the example

🔄 Click "Apply Changes" to see your modifications

↩️ Click "Reset" to restore original code

Navigation List with Click Handler

return NavigationList({
  items: [
    { icon: 'oj-ux-ico-home', label: 'Home', path: '/' },
    { icon: 'oj-ux-ico-tree-view', label: 'Overview', path: '/overview' }
  ],
  onItemClick: (item) => navigateTo(item.path)
})

▶️ Live Preview

💡 Click "Edit Code" to modify the example

🔄 Click "Apply Changes" to see your modifications

↩️ Click "Reset" to restore original code

💡 Usage Tips

🔗 Related

Explore vwf

Discover what vwf can do