Component docs
Loading
"use client";
import { EntityList } from "@pixxl-tools/components";| Prop | Type | Default | Description |
|---|---|---|---|
items (required) | readonly PixxlItem[] | — | Items to render. |
defaultValue | string | — | Initial value when uncontrolled. |
onValueChange | (value: string) => void | — | Called with the new value (only when it changes). |
value | string | — | Current value (controlled); null where it means "nothing selected". |
itemsrequiredreadonly PixxlItem[]
Items to render.
defaultValuestring
Initial value when uncontrolled.
onValueChange(value: string) => void
Called with the new value (only when it changes).
valuestring
Current value (controlled); null where it means "nothing selected".
Other props are passed to the root element (HTMLAttributes<HTMLDivElement>), including className, style, id and aria-* attributes.
const items = [
{ id: "candraw", label: "candraw" },
{ id: "cantext", label: "cantext" },
];
<EntityList aria-label="Packages" items={items} />