ListRowProps
Props for ListRow.
This is an interface exported by @mapcairn/map, checked against version 0.2.0.
Signature
import type { ListRowProps } from "@mapcairn/map";
interface ListRowProps extends Omit<LiHTMLAttributes<HTMLLIElement>, "children" | "onClick">
Properties
icon
readonly icon?: IconComponent;
A leading icon, imported by name from @phosphor-icons/react.
label
readonly label: ReactNode;
The row's main text.
onClick
readonly onClick?: MouseEventHandler<HTMLButtonElement>;
Makes the whole row a full-width button inside the li.
secondary
readonly secondary?: ReactNode;
A second, quieter line under the label.
selected
readonly selected?: boolean;
Marks the row as the current choice. Shown with a check icon and
aria-current, so selection does not depend on colour.
trailing
readonly trailing?: ReactNode;
Anything to show at the end, such as a value. Rendered before the check.