ink-ui

๐Ÿ‘‰ SelectableRow

Cursor-aware row primitive for interactive lists.

<SelectableRow> renders a row with an active cursor marker. It is intentionally stateless: keep cursor state in your own useInput handler and pass active to the selected row.

import { SelectableRow } from "@kud/ink-ui";

๐Ÿ”ง Props

PropTypeDefaultDescription
childrenReact.ReactNodeโ€”Row content
activebooleanfalseWhether the row is selected
markerstring"โฏ"Cursor marker for active row

๐Ÿ’ก Examples

<SelectableRow active>Review PR #42</SelectableRow>

On this page