API and Development
ListItem renders a static <li> when no href or onClick is provided. With href, content wraps Interactable as an anchor. With onClick, the <li> itself is interactive. Supports active, disabled, and common ARIA props (aria-label, aria-current, aria-expanded, etc.).
Name | Type | Default | Description |
|---|---|---|---|
|
| — | When true, applies an active/selected visual state. |
|
| — | Indicates the current item in a set (e.g., navigation). |
|
| — | ARIA disabled state. |
|
| — | ARIA expanded state for collapsible items. |
|
| — | Accessible label for the list item. |
|
| — | Additional CSS class name applied to the |
|
| — | Data attribute indicating active state, used for CSS styling. |
|
| — | When true, disables the list item interaction. |
|
| — | URL that makes the list item render as an anchor link. |
|
| — | CSS class applied to the inner |
|
| — | Click handler that makes the list item interactive. |
|
| — | Ref forwarded to the root element. |
Interactive examples and edge cases for this component are in Storybook.