Button Component
Description
The Button
component provides a customizable button with multiple variants and props.
It supports different styles, icons, full-width mode, and disabled states.
Props
Prop | Type | Description |
---|---|---|
variant |
"contained", "outlined", "text" |
Defines the button style |
fullWidth |
boolean |
If true, the button spans the full container width |
disabled |
boolean |
If true, the button is disabled |
startIcon |
ReactNode, React.ElementType |
Icon displayed before button text |
endIcon |
ReactNode, React.ElementType |
Icon displayed after button text |
color |
string |
Custom color for the button text |
href |
string |
If provided, renders the button as a link |
target |
"_blank", "_self", "_parent", "_top" |
Defines link target behavior |
rel |
string |
Specifies the relationship between the link and target |
badgeContent |
ReactNode |
Adds a small badge (for notifications, counts, etc.) |
badgeColor |
string |
Defines badge background color |
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