Icon Button
A button that displays an icon with an accompanying animation.
Installation
Usage
1import { IconButton } from '@/components/pumki-ui/buttons/icon';1<IconButton icon={Heart} />Props
| Prop | Type | Default | Description |
|---|---|---|---|
transition? | Transition | spring | Animation config |
color? | [number, number, number] | [59, 130, 246] | Icon color (RGB array) |
size? | ‘default’ | ‘sm’ | ‘md’ | ‘lg’ | default | Button size |
animate? | boolean | true | Enable animation |
active? | boolean | false | Active state |
icon | React.ElementType | - | Icon component |
Last updated on