Card
を使ってカードコンポーネントを定義します。<Card title="カードのタイトル" >
こちらはカードのコンテンツです
</Card>
<Card title="アイコン付きカード" icon="material-two-tone-storefront" >
こちらはカードのコンテンツです
</Card>
<Card title="クリックで飛べるカード" href="https://apidog.com" icon="material-two-tone-storefront">
カードをクリックすると、Apidogの公式サイトにリダイレクトされます。
</Card>
class
属性を使用したTailwind CSSスタイルの適用<Card title="カードの" class="text-center text-xl font-bold">
カードの内容
</Card>
style
を使用したスタイルの直接定義<Card title="カードの" style="background-color: #f0f0f0; padding: 10px;">
カードの内容
</Card>