IconButton

A toolbar button that is only a symbol: the plus, the chevrons, the sidebar toggle. plain sits on the bar, tinted is a rounded square over fill, round is the small circle a stepper uses. The label is required because the glyph is decorative.

Source
function IconButton({
  name,
  size = 15,
  variant = 'plain',
  xstyle,
  animate,
  type = 'button',
  ...props
}: IconButtonProps)

API reference

PropTypeDefaultDescription
nameSymProps['name']-
size?number15
variant?'plain' | 'tinted' | 'round''plain'

Also accepts Omit<PrimitiveProps<'button'>, 'as' | 'children'>. Raw style and className are refused.

Related components