IconButton

The IconButton component is a button that displays an icon.

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.

Primitives

You can utilize the primitive components or the css prop 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.