Skip to main content

ControlGroup

Icon buttons stacked on one floating surface, separated by hairlines. It is a plain group, not a toolbar, so it adds no arrow-key behaviour.

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

Signature​

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

function ControlGroup(input: ControlGroupProps): JSX.Element;

Parameters​

  • { label, className, children, ...rest }
  • input (ControlGroupProps)

Returns​

JSX.Element

Remarks​

Children should be IconButtons, which keep their 48 px targets. Pass data-chrome through for the layout owner.

See also​

Source: packages/map/src/ui/ControlGroup/ControlGroup.tsx:20