A square button for icon-only actions, supporting all color and size variants.
Import the IconButton
component from @bun-ui/react
and use it in your project:
import { IconButton } from "@bun-ui/react"
<IconButton>
<StarIcon />
</IconButton>
The IconButton
supports all the same color variants as Button
:
The IconButton
supports three square sizes: sm
, md
, and lg
:
You can use the asChild
prop to render the IconButton as a different element: