Skip to content

Commit

Permalink
Add new pattern for Cards
Browse files Browse the repository at this point in the history
  • Loading branch information
didair committed Oct 22, 2022
1 parent 7e31a50 commit 2468e75
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions src/patterns/Cards.stories.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import {
Avatar,
Card,
CardMeta,
Heading,
} from '../index';

export default {
title: 'Patterns/Cards',
};

const PostCard = (args) => {

return (
<div className="w-1/2 mx-auto">
<Card {...args}>
<CardMeta className="mb-2">
22 october 2022 - 6:00
</CardMeta>

<Heading size="xl">
Main content
</Heading>

A nice card description

<CardMeta className="mt-2">
<Avatar size="small" name="Andreas Ekström" /> Andreas Ekström
</CardMeta>
</Card>
</div>
);

};

export const Post = PostCard.bind({});

0 comments on commit 2468e75

Please sign in to comment.