Component docs
Loading
import { KeyValueList } from "@pixxl-tools/components";
// In Server Components:
import { KeyValueList } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
items (required) | readonly KeyValueItem[] | — | Items to render. |
itemsrequiredreadonly KeyValueItem[]
Items to render.
Other props are passed to the root element (HTMLAttributes<HTMLDListElement>), including className, style, id and aria-* attributes.
const items = [
{ key: "version", label: "Version", value: "0.3.0" },
{ key: "license", label: "License", value: "MIT" },
];
<KeyValueList items={items} />