Skip to content

Commit

Permalink
feat: cardにaタグを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
Hidetaro7 committed Oct 13, 2021
1 parent 286a4b9 commit 73970c8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/tailwindcss/stories/Card.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ Default.args = {
label: "カード",
};

const AnchorTemplate = () => {
return `
<a href="#" class="card px-4 py-3 mb-4">リンクカード</a>
`;
};

export const Anchor = AnchorTemplate.bind({});

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

0 comments on commit 73970c8

Please sign in to comment.