Component docs
Loading
"use client";
import { Collection } from "@pixxl-tools/components";| Prop | Type | Default | Description |
|---|---|---|---|
items (required) | readonly PixxlItem[] | — | Items to render. |
renderItem | (item: PixxlItem) => ReactNode | — | — |
itemsrequiredreadonly PixxlItem[]
Items to render.
renderItem(item: PixxlItem) => ReactNode
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" },
];
<Collection items={items} />