Skip to main content

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​

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​

Source: packages/map/src/ui/Chip/Chip.tsx:28