Card Component
Description
The Card
component is a versatile container that can display structured content, such as headers, actions, and clickable areas.
Props
Card
CardContent
CardActionArea
CardActions
Example Usage
| import { Card, CardHeader, CardContent, CardActionArea, CardActions, Button } from "@nomana-it/liberty-core"
export const CardExample = () => {
return (
<Card isSelected={true}>
<CardHeader title="Card Title" action={<Button variant="text">Edit</Button>} />
<CardContent>
This is the content inside the card. You can add text, images, or other elements here.
</CardContent>
<CardActionArea onClick={() => alert("Card Clicked!")}>
Clickable Area
</CardActionArea>
<CardActions>
<Button variant="contained" onClick={() => alert("Action Clicked!")}>Action</Button>
</CardActions>
</Card>
);
};
|
Useful Links
🔗 GitHub Repository (Core): Liberty Core
🔗 GitHub Repository (Test Project): Liberty Test
📖 Live Documentation: Liberty Core Docs
💖 Sponsor & Support: Sponsor Liberty Core