Skip to main content

Icon

Draws one icon at the system size and stroke width. Decorative by default (aria-hidden); pass label when it carries meaning on its own.

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

Signature​

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

function Icon(input: IconProps): JSX.Element;

Parameters​

  • { icon: Glyph, label, filled, spinning: isSpinning, mirrorInRtl, className, ...rest }
  • input (IconProps)

Returns​

JSX.Element

See also​

Source: packages/map/src/ui/Icon/Icon.tsx:50