We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e753cbb commit eef9872Copy full SHA for eef9872
1 file changed
docs/src/content/docs/ja/reference/icons.mdx
@@ -9,6 +9,19 @@ Starlightには、`<Icon>`コンポーネントを使用してコンテンツに
9
10
アイコンは[`<Icon>`](/ja/components/icons/)コンポーネントを使用して表示できます。また、[カード](/ja/components/cards/)や[ヒーローアクション](/ja/reference/frontmatter/#hero)の設定など、他のコンポーネントでもよく使用されます。
11
12
+## `StarlightIcon` 型
13
+
14
+TypeScriptの`StarlightIcon`型を使用して、[Starlightの組み込みアイコン](#すべてのアイコン)の名前を参照できます。
15
16
+```ts {2} /icon: (StarlightIcon)/
17
+// src/icon.ts
18
+import type { StarlightIcon } from '@astrojs/starlight/types';
19
20
+function getIconLabel(icon: StarlightIcon) {
21
+ // …
22
+}
23
+```
24
25
## すべてのアイコン
26
27
利用可能なすべてのアイコンとその関連名が以下にリストされています。アイコンをクリックすると、その名前がクリップボードにコピーされます。
0 commit comments