# Rokkit StatusList Component > Grouped validation message summary with severity counts and optional click-to-focus. `StatusList` is a display component from `@rokkit/forms`. It groups validation messages by severity (error → warning → info → success) and shows a count header per group. The component renders nothing when the items array is empty, making it safe to always mount. ## Quick Start ```svelte ``` ## Props | Prop | Type | Default | Description | |------|------|---------|-------------| | `items` | `Array<{ path, state, text }>` | `[]` | Validation messages to display | | `onclick` | `(path: string) => void` | — | When provided, items render as buttons; called with item path on click | | `class` | `string` | `''` | Additional CSS classes on root element | ### Item Shape ```ts { path: string // Field identifier; used as key and for onclick state: 'error' | 'warning' | 'info' | 'success' // Severity text: string // Human-readable message } ``` `builder.errors` and `builder.messages` already return items in this shape. ## Severity Grouping Items are automatically grouped in this order: error → warning → info → success. Each group with at least one item gets a count header ("2 errors", "1 warning", etc.). Groups with no items are omitted. ## Click-to-Focus Pass `onclick` to navigate to the failing field when a user clicks a validation item: ```svelte { document.querySelector(`[data-scope="#/${path}"]`) ?.querySelector('input, select, textarea') ?.focus() }} /> ``` When `onclick` is provided, each item renders as a `