Icon Button

Icon buttons help people take minor actions with one tap

import { IconButton } from '@cerberus/react'

Usage

Sizes

The IconButton component comes in two sizes: sm, lg. You can set the size by using the size prop.

As Child

The IconButton component can be used as a child component. This is useful when you want to use the button styles on a different element.

Primitives

You can utilize the primitive components to customize the button.

ComponentDescription
IconButtonThe context provider for the Button parts

API

Props

The IconButton component is an abstraction of the primitives and accepts the following props:

NameDefaultDescription
paletteactionThe color palette (any of the Cerberus palettes) of the button.
usagefilledThe style treatment of the button.
shapesharpThe shape of the button.
asChildRender the Button as the child component.