WRNexus UI
Base component

List Group

Theme-aware, responsive list group component.

8 props1 slots2 outputsTheme readyResponsive
Interactive playground

Configure List Group

Change any prop and inspect the server-rendered component immediately.

Live preview
Workspace
Component code
page ListGroupExample {
  state items = [
  {
    "value": "inbox",
    "label": "Inbox",
    "description": "Messages that need your attention",
    "icon": "icon-[lucide--inbox]",
    "badge": "8"
  },
  {
    "value": "projects",
    "label": "Projects",
    "description": "Your team's active work",
    "icon": "icon-[lucide--folder]"
  },
  {
    "value": "archive",
    "label": "Archive",
    "description": "Completed conversations",
    "icon": "icon-[lucide--archive]"
  }
]
  view {
    <ListGroup
      title="Workspace"
      items="{items}"
      value="inbox"
    />
  }
}
Event outputInteract with the preview to inspect the typed payload.
Component props8 controls
Live examples

Designed for real product surfaces

Compare configurations and resize the browser to check responsive behavior.

Recommended

Production default

Balanced spacing, hierarchy, and content for the most common product workflow.

01
Live preview
Workspace
Component usage.wrn
page ListGroupExample {
  state items = [
  {
    "value": "inbox",
    "label": "Inbox",
    "description": "Messages that need your attention",
    "icon": "icon-[lucide--inbox]",
    "badge": "8"
  },
  {
    "value": "projects",
    "label": "Projects",
    "description": "Your team's active work",
    "icon": "icon-[lucide--folder]"
  },
  {
    "value": "archive",
    "label": "Archive",
    "description": "Completed conversations",
    "icon": "icon-[lucide--archive]"
  }
]
  view {
    <ListGroup
      title="Workspace"
      items="{items}"
      value="inbox"
    />
  }
}
Dense UI

Compact application

A tighter variation for dashboards, side panels, tables, and operational interfaces.

02
Live preview
Workspace
Component usage.wrn
page ListGroupExample {
  state items = [
  {
    "value": "inbox",
    "label": "Inbox",
    "description": "Messages that need your attention",
    "icon": "icon-[lucide--inbox]",
    "badge": "8"
  },
  {
    "value": "projects",
    "label": "Projects",
    "description": "Your team's active work",
    "icon": "icon-[lucide--folder]"
  },
  {
    "value": "archive",
    "label": "Archive",
    "description": "Completed conversations",
    "icon": "icon-[lucide--archive]"
  }
]
  view {
    <ListGroup
      title="Workspace"
      items="{items}"
      value="inbox"
    />
  }
}
Extended

Rich configuration

A more expressive variation using additional data, stronger emphasis, and optional states.

03
Live preview
Workspace
Component usage.wrn
page ListGroupExample {
  state items = [
  {
    "value": "inbox",
    "label": "Inbox",
    "description": "Messages that need your attention",
    "icon": "icon-[lucide--inbox]",
    "badge": "8"
  },
  {
    "value": "projects",
    "label": "Projects",
    "description": "Your team's active work",
    "icon": "icon-[lucide--folder]"
  },
  {
    "value": "archive",
    "label": "Archive",
    "description": "Completed conversations",
    "icon": "icon-[lucide--archive]"
  }
]
  view {
    <ListGroup
      title="Workspace"
      items="{items}"
      value="inbox"
    />
  }
}
Component outputs

Receive every typed component output

Use declarative output handlers in .wrn files or register a direct output handler from JavaScript. The canonical API exposes payload and does not require event.detail.

@selectFires when an item, option, card, or result is selected.
@changeFires when the component's committed value or selection changes.
Declarative handlers.wrn
<ListGroup
  @select='console.log(payload)'
  @change='console.log(payload)'
/>
Direct output handlers.js
import { registerOutputHandler } from "@wrnexus/csr/outputs"

const component = document.querySelector("[data-ui-component=\"ListGroup\"], [data-component=\"ListGroup\"]")

if (component) registerOutputHandler(component, "select", (payload) => {
  console.log("select", payload)
})

if (component) registerOutputHandler(component, "change", (payload) => {
  console.log("change", payload)
})
Component API

Props and configuration

All content and behavior shown above is supplied through these props and slots.

PropTypeDefaultRequired
sizestring"default"No
colorstring"primary"No
titlestring"List Group"No
descriptionstring""No
itemsunknown[][]No
variantstring"default"No
valuestring""No
classstring""No