IconButton Component
Description
The IconButton
component is a button wrapper specifically for icons, offering:
- Customizable icon size
- Disabled and selected states
- Hover effects with scaling animation
Props
Prop | Type | Default | Description |
---|---|---|---|
icon |
React.ElementType |
- |
Icon component to display inside the button. |
isSelected |
boolean |
false |
Determines if the button is selected. |
size |
"small" , "medium" , "large" |
"medium" |
Defines the icon size. |
disabled |
boolean |
false |
Disables the button when set to true. |
component |
ElementType |
"button" |
Allows rendering a different HTML element. |
Example Usage
Useful Links
🔗 GitHub Repository (Core): Liberty Core
🔗 GitHub Repository (Test Project): Liberty Test
📖 Live Documentation: Liberty Core Docs
💖 Sponsor & Support: Sponsor Liberty Core