Skip to main content

ListRow

A list item for lists of places, layers and options. Render rows inside a ul (or ol). Without onClick the row is plain content; with it the row is a single full-width button, so the whole row is the target.

This is a function exported by @mapcairn/map, checked against version 0.2.0.

Signature​

import { ListRow } from "@mapcairn/map";

function ListRow(input: ListRowProps): JSX.Element;

Parameters​

  • { icon, label, secondary: secondaryText, trailing: trailingNode, selected, onClick, className, ...rest }
  • input (ListRowProps)

Returns​

JSX.Element

See also​

Source: packages/map/src/ui/ListRow/ListRow.tsx:33