Search documentation...
K

IconButton

A button that only contains an icon.

Preview

Usage

import { IconButton } from "natmfat/components/IconButton"; import { RiSunIcon } from "natmfat/icons/RiSunIcon";
<IconButton alt="Sun" aria-label="Toggle theme"> <RiSunIcon /> </IconButton>

Reference

Prop

Type

Default

size
IconButtonSize
tokens.space24
alt
string
color
Color
variant
"fill""noFill""outline"
"noFill"
asChild
boolean