Skip to main content

IconButton

A button that shows only an icon. It activates on click (pointer up or keyboard) and never on pointer down, so a press can be cancelled by moving away before release.

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

Signature​

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

function IconButton(input: IconButtonProps): JSX.Element;

Parameters​

  • { label, icon, mirrorInRtl, pressed, busy, disabled, expanded, controls, size, className, onClick, ...rest }
  • input (IconButtonProps)

Returns​

JSX.Element

See also​

Source: packages/map/src/ui/IconButton/IconButton.tsx:56