Icon Button
This compact and visually intuitive component is perfect for applications that demand streamlined, self-explanatory user interfaces. With the IconButton component, you can not only use all of the icons provided by Chakra UI, but you can also use any icon from any library, such as React Icons, Bootstrap Icons, or Material UI Icons.
Theis component can be imported as follows:
Examples
Basic Usage
Code
Customizing Color
cyan colorScheme
teal colorScheme
green colorScheme
orange colorScheme
purple colorScheme
pink colorScheme
Code
Customizing Size
xs size
sm size
md size
lg size
Code
Customizing the Variant
outline variant
solid variant
ghost variant
link variant
Code
isRound prop
Code
isLoading
The following example simulates a download operation, with the isLoading prop being set to true for 2 seconds after a user clicks.
Code
Did you know?
Creative Idea No. 1
Code
Creative Idea No. 2
Code
Creative Idea No. 3
Code
copyright © 2023 IHeartComponents | evanmarie.com
created with love by the I♥️Components team using
Special thanks to Stefan Bohacek / Generative Placeholders.