Card
関連するコンテンツをまとめるサーフェス。ヘッダー、タイトル、説明、アクション、コンテンツ、フッターの各パーツを持ちます。
対応フレームワーク
Angular: 対応 Vue: 対応 React: 対応 React Native: 対応
使い方
Storage
Recordings kept on this device.
12.4 GB of 20 GB used across 38 recordings.
Weekly sync
Tuesday 14:00 · 42 min
Ada Park will share the launch checklist on Friday.
<div class="demo-row" style="align-items: flex-start">
<section soneCard style="width: 22rem">
<header soneCardHeader>
<h3 soneCardTitle>Storage</h3>
<p soneCardDescription>Recordings kept on this device.</p>
<button soneCardAction soneBtn variant="ghost" size="sm" type="button">Reveal</button>
</header>
<div soneCardContent>12.4 GB of 20 GB used across 38 recordings.</div>
<footer soneCardFooter>
<button soneBtn variant="outline" size="sm" type="button">Free up space</button>
<button soneBtn variant="ghost" size="sm" type="button">Settings</button>
</footer>
</section>
<section soneCard size="sm" style="width: 18rem">
<header soneCardHeader>
<h3 soneCardTitle>Weekly sync</h3>
<p soneCardDescription>Tuesday 14:00 · 42 min</p>
</header>
<div soneCardContent>Ada Park will share the launch checklist on Friday.</div>
<footer soneCardFooter>
<button soneBtn size="sm" type="button">Open note</button>
</footer>
</section>
</div>インポート
import {
SoneCardActionDirective,
SoneCardContentDirective,
SoneCardDescriptionDirective,
SoneCardDirective,
SoneCardFooterDirective,
SoneCardHeaderDirective,
SoneCardTitleDirective,
} from "@surface-one/angular/card";API リファレンス
SoneCardActionDirectiveディレクティブ
SoneCardContentDirectiveディレクティブ
SoneCardDescriptionDirectiveディレクティブ
SoneCardDirectiveディレクティブ
| 名前 | 型 | デフォルト |
|---|---|---|
size | CardSize | "default" |