Компоненти
Картка
Область, що об’єднує заголовок, вміст і нижній колонтитул.
Використання
Основне
Deployment
Ship the current branch to production.
<bs:bsui-card>
<bs:bsui-card-header>
<bs:bsui-card-title label="Deployment" />
<bs:bsui-card-description label="Ship the current branch to production." />
</bs:bsui-card-header>
<bs:bsui-card-content>
<bs:bsui-input placeholder="Release name" />
</bs:bsui-card-content>
<bs:bsui-card-footer>
<bs:bsui-button label="Deploy" />
</bs:bsui-card-footer>
</bs:bsui-card>Картка з метрикою
Без нижнього колонтитула, а вміст містить число, а не форму.
Active installs
Counted across every site on this licence.
12,480
+8.2%Up from 11,530 at the end of last month.
<bs:bsui-card>
<bs:bsui-card-header>
<bs:bsui-card-title label="Active installs" />
<bs:bsui-card-description label="Counted across every site on this licence." />
</bs:bsui-card-header>
<bs:bsui-card-content>
<bs:bsui-stack direction="row" gap="3" align="center">
<bs:bsui-text content="12,480" variant="heading" tag="p" />
<bs:bsui-badge label="+8.2%" variant="success" />
</bs:bsui-stack>
<bs:bsui-text content="Up from 11,530 at the end of last month." variant="caption" />
</bs:bsui-card-content>
</bs:bsui-card>Картка з медіа
Співвідношення сторін у вмісті зберігає незмінну форму області зображення.
Latest snapshot
Captured from the homepage after the last deploy.
Taken 4 minutes ago
<bs:bsui-card>
<bs:bsui-card-header>
<bs:bsui-card-title label="Latest snapshot" />
<bs:bsui-card-description label="Captured from the homepage after the last deploy." />
</bs:bsui-card-header>
<bs:bsui-card-content>
<bs:bsui-aspect-ratio ratio="16/9" background="var(--color-surface)">
<bs:bsui-text content="Homepage" variant="muted" />
</bs:bsui-aspect-ratio>
<bs:bsui-text content="Taken 4 minutes ago" variant="caption" />
</bs:bsui-card-content>
<bs:bsui-card-footer>
<bs:bsui-button label="Open the site" variant="outline" size="sm" />
<bs:bsui-button label="Recapture" variant="ghost" size="sm" />
</bs:bsui-card-footer>
</bs:bsui-card>Картки поруч
Стос карток утворює стовпці однакової висоти.
Starter
For a single site and the person who runs it.
99 euro a year
Studio
For agencies shipping client work every week.
249 euro a year
<bs:bsui-stack direction="row" gap="4" align="stretch">
<bs:bsui-card>
<bs:bsui-card-header>
<bs:bsui-card-title label="Starter" />
<bs:bsui-card-description label="For a single site and the person who runs it." />
</bs:bsui-card-header>
<bs:bsui-card-content>
<bs:bsui-text content="99 euro a year" variant="title" tag="p" />
</bs:bsui-card-content>
<bs:bsui-card-footer>
<bs:bsui-button label="Choose Starter" variant="outline" />
</bs:bsui-card-footer>
</bs:bsui-card>
<bs:bsui-card>
<bs:bsui-card-header>
<bs:bsui-card-title label="Studio" />
<bs:bsui-card-description label="For agencies shipping client work every week." />
</bs:bsui-card-header>
<bs:bsui-card-content>
<bs:bsui-text content="249 euro a year" variant="title" tag="p" />
</bs:bsui-card-content>
<bs:bsui-card-footer>
<bs:bsui-button label="Choose Studio" />
</bs:bsui-card-footer>
</bs:bsui-card>
</bs:bsui-stack>Структура
Картка складається з блоків нижче. Кожен із них є окремим блоком, який відображається лише всередині батьківського.
bsui/cardbsui/card-contentbsui/card-footerbsui/card-headerbsui/card-descriptionbsui/card-title
Атрибути
Цей блок не приймає атрибутів.
bsui/card-content
Цей блок не приймає атрибутів.
bsui/card-footer
| Атрибут | Тип | За замовчуванням |
|---|---|---|
justify | start |
bsui/card-header
Цей блок не приймає атрибутів.
bsui/card-description
| Атрибут | Тип | За замовчуванням |
|---|---|---|
label | richtext | — |
bsui/card-title
| Атрибут | Тип | За замовчуванням |
|---|---|---|
label | richtext | — |