-
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
-
38
---
// 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="Button">
<Document>
<p>
ユーザがクリックやタップをすることでアクションを実行する UI です。
以下の操作を「押す」という操作とみなします。
</p>
<ul>
<li>クリック (マウス)</li>
<li>タップ (タッチインターフェイス)</li>
<li>フォーカスが当たっている状態で <kbd>Space</kbd> キー (キーボード)</li>
</ul>
<ThemeMatrixPreview>
<yamori-button>ボタン</yamori-button>
</ThemeMatrixPreview>
<h2>Inline / Block</h2>
<p>
ボタンはデフォルトでブロックレベル要素となっています。
<code>inline</code> 属性を指定することでインラインになります。
</p>
<Preview title="inline">
<yamori-button inline="">ボタン</yamori-button>
</Preview>
<Preview title="block (デフォルト)">
<yamori-button>Button</yamori-button>
</Preview>
</Document>
</DocsLayout>