-
1
-
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
-
26
-
27
-
28
-
29
-
30
-
31
-
32
-
33
-
34
-
35
-
36
-
37
---
// SPDX-FileCopyrightText: 2024 Shota FUJI <pockawoooh@gmail.com>
// SPDX-License-Identifier: AGPL-3.0-only
import DocsLayout from "../../layouts/DocsLayout.astro";
import Document from "../../components/Document.astro";
import Preview from "../../components/Preview.astro";
import ThemeMatrixPreview from "../../components/ThemeMatrixPreview.astro";
---
<DocsLayout title="Callout">
<Document>
<p>
エラーや警告といったページ内要素に関連する重要な情報を表示する UI です。
</p>
<ThemeMatrixPreview>
<yamori-callout>
<span slot="title">タイトル</span>
メッセージ。
<yamori-button slot="action" inline>操作1</yamori-button>
<yamori-button slot="action" inline>操作2</yamori-button>
</yamori-callout>
</ThemeMatrixPreview>
<p>
<code>action</code> スロットは未指定とすることができます。
</p>
<Preview title="No named slots">
<yamori-callout>
<span slot="title">タイトル</span>
メッセージ。
</yamori-callout>
</Preview>
</Document>
</DocsLayout>