# Chip

A small pill. With `onClick` it is a toggle `button` with `aria-pressed`;
without it, a static `span` that only labels.

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

## Signature

```ts
import { Chip } from "@mapcairn/map";
 
function Chip(input: ChipProps): JSX.Element;
```

## Parameters

- `{ children, icon, selected, onClick, className, ...rest }`
- `input` (`ChipProps`)

## Returns

`JSX.Element`

## See also

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

Source: [packages/map/src/ui/Chip/Chip.tsx:28](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/ui/Chip/Chip.tsx#L28)
