Component docs
Loading
import { ListItem } from "@pixxl-tools/components";
// In Server Components:
import { ListItem } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
as | "li" | "div" | — | Element to render. |
interactive | boolean | — | — |
leading | ReactNode | — | Content before the main content (icon, prefix). |
state | "idle" | "selected" | — | — |
trailing | ReactNode | — | Content after the main content (icon, suffix). |
as"li" | "div"
Element to render.
interactiveboolean
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 (HTMLAttributes<HTMLElement>), including className, style, id and aria-* attributes.
<ListItem>Layer</ListItem>