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>