卡片
Login to your account
Enter your email below to login to your account
用途
Add your card HTML
HTML结构
<div class="card">The card container. Use
data-size="sm"for a denser layout.<header>The card header.
<h2>or<h3>- The card title.
<p>Optional- The card description.
<div class="card-action">Optional- Action or metadata placed in the top-right of the header. Use
<menu class="card-action">when the content is a list of commands.
<section>- The main card content.
<footer>Optional- Footer actions or secondary content at the bottom of the card.
示例
尺寸
使用data-size="sm"将卡的尺寸设置为小。小尺寸变体使用更小的间距。
Small Card
This card uses the small size variant.
The card component supports a size attribute that can be set to sm for a more compact appearance.
图片
在卡片标题前添加图像以创建带有图像的卡片。

Design systems meetup
A practical talk on component APIs, accessibility, and shipping faster.
Featured
RTL
将 dir="rtl" 添加到卡或祖先。
تسجيل الدخول إلى حسابك
أدخل بريدك الإلكتروني أدناه لتسجيل الدخول إلى حسابك