On this page
Icon sizes
Set icon size with the size prop or CSS, and which sizes render crispest.
The size prop
size sets both width and height. Numbers are pixels; strings can be any CSS length.
<IconBell size={16} />
<IconBell size="1.25em" />With CSS
Classes beat the attributes, so Tailwind sizes work without size.
<IconBell className="size-4 md:size-5" />Crisp sizes
Icons are drawn on a 24px grid, so 24 and its halves and doubles (12, 48) land on whole pixels. 16, 20 and 32 also render cleanly.
Something wrong or missing?Open an issue