# ListRowProps

Props for [`ListRow`](https://docs.mapcairn.com/api/map/ListRow.md).

This is an interface exported by `@mapcairn/map`, checked against version 0.2.0.

## Signature

```ts
import type { ListRowProps } from "@mapcairn/map";
 
interface ListRowProps extends Omit<LiHTMLAttributes<HTMLLIElement>, "children" | "onClick">
```

## Properties

### icon

```ts
readonly icon?: IconComponent;
```

A leading icon, imported by name from `@phosphor-icons/react`.

### label

```ts
readonly label: ReactNode;
```

The row's main text.

### onClick

```ts
readonly onClick?: MouseEventHandler<HTMLButtonElement>;
```

Makes the whole row a full-width button inside the `li`.

### secondary

```ts
readonly secondary?: ReactNode;
```

A second, quieter line under the label.

### selected

```ts
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

```ts
readonly trailing?: ReactNode;
```

Anything to show at the end, such as a value. Rendered before the check.

## See also

- [`IconComponent`](https://docs.mapcairn.com/api/map/IconComponent.md)

Source: [packages/map/src/ui/ListRow/ListRow.tsx:9](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/ui/ListRow/ListRow.tsx#L9)
