Skip to content

Commit

Permalink
feat: Cardコンポーネントの出来上がり
Browse files Browse the repository at this point in the history
  • Loading branch information
Hidetaro7 committed Sep 1, 2021
1 parent f719b84 commit f1333a9
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion packages/tailwindcss/stories/Card.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,23 @@ export default {
};

const Template = ({ label }) => {
return `<div class="card">${label}</div>`;
return `
<div class="card px-4 py-3 mb-4">${label}</div>
`;
};

export const Default = Template.bind({});
Default.args = {
label: "カード",
};

const ShadowedTemplate = ({ label }) => {
return `
<div class="card px-4 py-3 border-0 shadow-lg">${label}</div>
`;
};

export const Shadowed = ShadowedTemplate.bind({});
Shadowed.args = {
label: "カード",
};

0 comments on commit f1333a9

Please sign in to comment.