Component docs
Loading
import { EntityListItem } from "@pixxl-tools/components";
// In Server Components:
import { EntityListItem } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
title | ReactNode | — | Title (any content). |
description | ReactNode | — | Supporting text. |
disabled | boolean | — | Disables interaction. |
leading | ReactNode | — | Content before the main content (icon, prefix). |
state | "idle" | "selected" | — | — |
trailing | ReactNode | — | Content after the main content (icon, suffix). |
titleReactNode
Title (any content).
descriptionReactNode
Supporting text.
disabledboolean
Disables interaction.
leadingReactNode
Content before the main content (icon, prefix).
state"idle" | "selected"
trailingReactNode
Content after the main content (icon, suffix).
Other props are passed to the root element (ButtonHTMLAttributes<HTMLButtonElement>), including className, style, id and aria-* attributes.
<EntityListItem title="Canvas" />