@supersoniks/concorde 5.0.5 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/ci.yml +21 -0
- package/.github-export-ignore +30 -0
- package/.tmp-cem/custom-elements.json +13705 -0
- package/CONTRIBUTING.md +59 -0
- package/DEV.md +54 -0
- package/LICENSE +21 -0
- package/OPEN_SOURCE_CHECKPOINT.md +133 -0
- package/build-infos.json +1 -1
- package/concorde-3d.bundle.js +3960 -0
- package/concorde-3d.es.js +33433 -0
- package/concorde-core.bundle.js +196 -196
- package/concorde-core.es.js +3685 -3405
- package/concorde-hugging-face-infer.bundle.js +32 -0
- package/concorde-hugging-face-infer.es.js +2952 -0
- package/concorde-interactive.bundle.js +1157 -0
- package/concorde-interactive.es.js +10734 -0
- package/concorde-shader.bundle.js +116 -0
- package/concorde-shader.es.js +8353 -0
- package/concorde-webgpu.bundle.js +307 -0
- package/concorde-webgpu.es.js +8627 -0
- package/custom-elements-manifest.config.mjs +14 -0
- package/dist/concorde-core.bundle.js +196 -196
- package/dist/concorde-core.es.js +3685 -3405
- package/docs/assets/{index-wVZpLVYW.js → index-D8MVWqY6.js} +1351 -1222
- package/docs/assets/index-DiD0qYvE.css +1 -0
- package/docs/crawl/core/components/ui/alert/alert.html +71 -172
- package/docs/crawl/core/components/ui/alert-messages/alert-messages.html +5 -113
- package/docs/crawl/core/components/ui/badge/badge.html +79 -157
- package/docs/crawl/core/components/ui/button/button.html +0 -1
- package/docs/crawl/core/components/ui/captcha/captcha.html +8 -90
- package/docs/crawl/core/components/ui/card/card.html +68 -222
- package/docs/crawl/core/components/ui/divider/divider.html +31 -117
- package/docs/crawl/core/components/ui/form/fieldset/fieldset.html +101 -232
- package/docs/crawl/core/components/ui/form/form-actions/form-actions.html +52 -95
- package/docs/crawl/core/components/ui/form/form-layout/form-layout.html +38 -97
- package/docs/crawl/core/components/ui/form/input/input.html +3 -3
- package/docs/crawl/core/components/ui/form/textarea/textarea.html +3 -3
- package/docs/crawl/core/components/ui/group/group.html +38 -60
- package/docs/crawl/core/components/ui/icon/icon.html +47 -136
- package/docs/crawl/core/components/ui/image/image.html +56 -244
- package/docs/crawl/core/components/ui/link/link.html +9 -67
- package/docs/crawl/core/components/ui/loader/loader.html +23 -97
- package/docs/crawl/core/components/ui/menu/menu.html +90 -162
- package/docs/crawl/core/components/ui/modal/modal.html +50 -275
- package/docs/crawl/core/components/ui/pop/pop.html +66 -260
- package/docs/crawl/core/components/ui/progress/progress.html +30 -103
- package/docs/crawl/core/components/ui/table/table.html +171 -303
- package/docs/crawl/core/components/ui/toast/toast.html +59 -170
- package/docs/crawl/core/components/ui/tooltip/tooltip.html +29 -90
- package/docs/crawl/docs/_decorators/ancestor-attribute.html +2 -3
- package/docs/crawl/docs/_getting-started/concorde-outside.html +3 -3
- package/docs/crawl/docs/_getting-started/start.html +1 -1
- package/docs/crawl/docs/_getting-started/theming.html +63 -311
- package/docs/crawl/hubs/form-components.html +53 -75
- package/docs/crawl/index.html +6 -7
- package/docs/docs-mock-api-sw.js +0 -2
- package/docs/docs-mock-api-sw.js.map +2 -2
- package/docs/index.html +7 -9
- package/docs/llms-full.txt +456 -1703
- package/docs/llms.txt +32 -25
- package/docs/sitemap.xml +0 -3
- package/docs/src/core/components/functional/fetch/fetch.md +0 -0
- package/docs/src/core/components/functional/if/if.md +0 -0
- package/docs/src/core/components/functional/list/list.md +0 -0
- package/docs/src/core/components/functional/router/router.md +0 -0
- package/docs/src/core/components/functional/sdui/sdui.md +0 -0
- package/docs/src/core/components/functional/states/states.md +0 -0
- package/docs/src/core/components/functional/submit/submit.md +0 -0
- package/docs/src/core/components/ui/alert/alert.md +72 -147
- package/docs/src/core/components/ui/alert-messages/alert-messages.md +0 -85
- package/docs/src/core/components/ui/badge/badge.md +80 -141
- package/docs/src/core/components/ui/button/button.md +0 -1
- package/docs/src/core/components/ui/captcha/captcha.md +6 -65
- package/docs/src/core/components/ui/card/card.md +65 -183
- package/docs/src/core/components/ui/divider/divider.md +13 -107
- package/docs/src/core/components/ui/form/fieldset/fieldset.md +99 -175
- package/docs/src/core/components/ui/form/form-actions/form-actions.md +52 -75
- package/docs/src/core/components/ui/form/form-layout/form-layout.md +34 -109
- package/docs/src/core/components/ui/form/input/input.md +1 -1
- package/docs/src/core/components/ui/form/radio/radio.md +0 -0
- package/docs/src/core/components/ui/form/select/select.md +0 -0
- package/docs/src/core/components/ui/form/switch/switch.md +0 -0
- package/docs/src/core/components/ui/form/textarea/textarea.md +1 -1
- package/docs/src/core/components/ui/group/group.md +36 -36
- package/docs/src/core/components/ui/icon/icon.md +43 -132
- package/docs/src/core/components/ui/image/image.md +53 -179
- package/docs/src/core/components/ui/link/link.md +7 -45
- package/docs/src/core/components/ui/loader/loader.md +22 -79
- package/docs/src/core/components/ui/menu/menu.md +92 -133
- package/docs/src/core/components/ui/modal/modal.md +47 -163
- package/docs/src/core/components/ui/pop/pop.md +64 -262
- package/docs/src/core/components/ui/progress/progress.md +30 -76
- package/docs/src/core/components/ui/table/table.md +171 -147
- package/docs/src/core/components/ui/toast/toast.md +58 -108
- package/docs/src/core/components/ui/tooltip/tooltip.md +26 -68
- package/docs/src/docs/_core-concept/subscriber.md +0 -0
- package/docs/src/docs/_decorators/ancestor-attribute.md +2 -3
- package/docs/src/docs/_getting-started/concorde-outside.md +3 -3
- package/docs/src/docs/_getting-started/my-first-subscriber.md +0 -0
- package/docs/src/docs/_getting-started/pubsub.md +0 -0
- package/docs/src/docs/_getting-started/start.md +1 -1
- package/docs/src/docs/_getting-started/theming.md +61 -223
- package/docs/src/docs/search/docs-search.json +348 -3083
- package/docs/src/tsconfig.declarations.json +22 -0
- package/docs/src/tsconfig.emit.json +23 -0
- package/docs/src/tsconfig.json +3 -63
- package/gitlab/job_github_mirror.sh +39 -0
- package/package.json +36 -2
- package/scripts/generate-sdui-catalog.mjs +250 -0
- package/scripts/generate-sdui-catalog.spec.ts +91 -0
- package/scripts/github-export.mjs +150 -0
- package/scripts/post-build-docs.js +0 -0
- package/scripts/post-build.mjs +0 -0
- package/scripts/pre-build.mjs +15 -0
- package/src/core/components/functional/fetch/fetch.md +0 -0
- package/src/core/components/functional/if/if.md +0 -0
- package/src/core/components/functional/if/if.ts +0 -0
- package/src/core/components/functional/list/list.demo.ts +0 -0
- package/src/core/components/functional/list/list.md +0 -0
- package/src/core/components/functional/router/router.md +0 -0
- package/src/core/components/functional/router/router.ts +0 -0
- package/src/core/components/functional/sdui/SDUIDescriptorTransformer.ts +5 -5
- package/src/core/components/functional/sdui/__fixtures__/descriptors.ts +251 -0
- package/src/core/components/functional/sdui/__snapshots__/sdui-action.spec.ts.snap +73 -0
- package/src/core/components/functional/sdui/__snapshots__/sdui-incremental.spec.ts.snap +50 -0
- package/src/core/components/functional/sdui/__snapshots__/sdui-partial.spec.ts.snap +50 -0
- package/src/core/components/functional/sdui/__snapshots__/sdui.regression.spec.ts.snap +461 -0
- package/src/core/components/functional/sdui/component-catalog.gaps.json +511 -0
- package/src/core/components/functional/sdui/component-catalog.json +3103 -0
- package/src/core/components/functional/sdui/component-catalog.spec.ts +23 -0
- package/src/core/components/functional/sdui/sdui-action.spec.ts +99 -0
- package/src/core/components/functional/sdui/sdui-dom-snapshot.ts +61 -0
- package/src/core/components/functional/sdui/sdui-extension-points.md +94 -0
- package/src/core/components/functional/sdui/sdui-incremental.spec.ts +137 -0
- package/src/core/components/functional/sdui/sdui-partial.spec.ts +83 -0
- package/src/core/components/functional/sdui/sdui-partial.ts +19 -0
- package/src/core/components/functional/sdui/sdui-safe.spec.ts +188 -0
- package/src/core/components/functional/sdui/sdui-safe.ts +100 -0
- package/src/core/components/functional/sdui/sdui.md +122 -0
- package/src/core/components/functional/sdui/sdui.regression.spec.ts +64 -0
- package/src/core/components/functional/sdui/sdui.ts +442 -34
- package/src/core/components/functional/sdui/types.ts +49 -0
- package/src/core/components/functional/states/states.md +0 -0
- package/src/core/components/functional/submit/submit.md +0 -0
- package/src/core/components/functional/subscriber/subscriber.ts +0 -0
- package/src/core/components/functional/value/value.ts +0 -0
- package/src/core/components/ui/_css/size.ts +0 -0
- package/src/core/components/ui/captcha/altchaStyles.ts +0 -0
- package/src/core/components/ui/form/radio/radio.md +0 -0
- package/src/core/components/ui/form/select/select.md +0 -0
- package/src/core/components/ui/form/switch/switch.md +0 -0
- package/src/core/mixins/Subscriber.ts +0 -0
- package/src/core/utils/DataBindObserver.ts +0 -0
- package/src/core/utils/Objects.ts +0 -0
- package/src/core/utils/route.ts +0 -0
- package/src/css.d.ts +19 -0
- package/src/docs/_core-concept/subscriber.md +0 -0
- package/src/docs/_getting-started/my-first-subscriber.md +0 -0
- package/src/docs/_getting-started/pubsub.md +0 -0
- package/src/docs/example/users.ts +0 -0
- package/src/docs/search/page.ts +0 -0
- package/src/tsconfig.declarations.json +22 -0
- package/src/tsconfig.emit.json +23 -0
- package/src/tsconfig.json +90 -0
- package/src/tsconfig.tsbuildinfo +1 -1
- package/docs/assets/index-CD4WyL6o.css +0 -1
- package/docs/crawl/core/components/ui/theme/theme.html +0 -131
- package/docs/src/core/components/ui/theme/theme.md +0 -122
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<meta charset="UTF-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
6
|
<title>Icon — Concorde</title>
|
|
7
|
-
<meta name="description" content="
|
|
8
|
-
<meta name="keywords" content="Concorde, supersoniks, core/components/ui/icon/icon, icon, Icon, UI component, sonic-icon, web component
|
|
7
|
+
<meta name="description" content="customIconDefaultPrefix="regular">">
|
|
8
|
+
<meta name="keywords" content="Concorde, supersoniks, core/components/ui/icon/icon, icon, Icon, UI component, sonic-icon, web component">
|
|
9
9
|
<meta name="concorde-doc-id" content="core/components/ui/icon/icon">
|
|
10
10
|
<link rel="canonical" href="https://concorde.supersoniks.org/crawl/core/components/ui/icon/icon.html">
|
|
11
11
|
</head>
|
|
@@ -15,206 +15,117 @@
|
|
|
15
15
|
</header>
|
|
16
16
|
<main>
|
|
17
17
|
<article>
|
|
18
|
-
<p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Icon</strong>.
|
|
18
|
+
<p class="doc-lead" id="doc-summary"><strong>Concorde UI component — Icon</strong>. customIconDefaultPrefix="regular"> <span>Doc ID: <code>core/components/ui/icon/icon</code>. Keywords: Concorde, supersoniks, core/components/ui/icon/icon, icon, Icon, UI component, sonic-icon, web component. URL: <a href="https://concorde.supersoniks.org/crawl/core/components/ui/icon/icon.html">https://concorde.supersoniks.org/crawl/core/components/ui/icon/icon.html</a>.</span></p>
|
|
19
19
|
<h1 id="icon">Icon</h1>
|
|
20
|
-
<
|
|
21
|
-
<
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
<
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
<
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
<
|
|
38
|
-
<div class="text-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
<
|
|
43
|
-
</div>
|
|
44
|
-
<div class="text-center">
|
|
45
|
-
<sonic-icon name="loader" size="lg"></sonic-icon>
|
|
46
|
-
<div class="text-xs mt-1">loader</div>
|
|
47
|
-
</div>
|
|
48
|
-
<div class="text-center">
|
|
49
|
-
<sonic-icon name="minus-small" size="lg"></sonic-icon>
|
|
50
|
-
<div class="text-xs mt-1">minus-small</div>
|
|
51
|
-
</div>
|
|
52
|
-
<div class="text-center">
|
|
53
|
-
<sonic-icon name="more-horiz" size="lg"></sonic-icon>
|
|
54
|
-
<div class="text-xs mt-1">more-horiz</div>
|
|
55
|
-
</div>
|
|
56
|
-
<div class="text-center">
|
|
57
|
-
<sonic-icon name="more-vert" size="lg"></sonic-icon>
|
|
58
|
-
<div class="text-xs mt-1">more-vert</div>
|
|
59
|
-
</div>
|
|
60
|
-
<div class="text-center">
|
|
61
|
-
<sonic-icon name="nav-arrow-down" size="lg"></sonic-icon>
|
|
62
|
-
<div class="text-xs mt-1">nav-arrow-down</div>
|
|
63
|
-
</div>
|
|
64
|
-
<div class="text-center">
|
|
65
|
-
<sonic-icon name="warning-circled-outline" size="lg"></sonic-icon>
|
|
66
|
-
<div class="text-xs mt-1">warning-circled-outline</div>
|
|
20
|
+
<h2 id="custom">Custom</h2>
|
|
21
|
+
<p >Icons located in the following folder : <span class="text-info">/svg/$prefix/$name.svg<span></p>
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
<pre><code><sonic-scope customIconLibraryPath="/svg/$prefix/$name.svg"
|
|
26
|
+
customIconDefaultPrefix="regular">
|
|
27
|
+
<div class="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-8">
|
|
28
|
+
<div class="text-center">
|
|
29
|
+
<sonic-icon library="custom" prefix="regular" name="plane"></sonic-icon>
|
|
30
|
+
<br>
|
|
31
|
+
<div class="text-xs mt-1">regular</div>
|
|
32
|
+
</div>
|
|
33
|
+
<div class="text-center">
|
|
34
|
+
<sonic-icon library="custom" prefix="solid" name="plane"></sonic-icon>
|
|
35
|
+
<br>
|
|
36
|
+
<div class="text-xs mt-1">solid</div>
|
|
37
|
+
</div>
|
|
38
|
+
<div class="text-center">
|
|
39
|
+
<sonic-icon library="custom" name="plane"></sonic-icon>
|
|
40
|
+
<br>
|
|
41
|
+
<div class="text-xs mt-1">default prefix</div>
|
|
42
|
+
</div>
|
|
67
43
|
</div>
|
|
68
|
-
</
|
|
44
|
+
</sonic-scope>
|
|
69
45
|
</code></pre>
|
|
70
|
-
<h2 id="external
|
|
71
|
-
<p>Set <strong><code>library</code></strong> to load SVGs from a built-in CDN template. <strong><code>prefix</code></strong> falls back to each library’s default when omitted (<code>outline</code> for <strong><code>heroicons</code></strong>, <strong><code>regular</code></strong> for <strong><code>fontAwesome</code></strong> and <strong><code>material</code></strong>, and so on).</p>
|
|
46
|
+
<h2 id="external">External</h2>
|
|
72
47
|
<pre><code><div class="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-8">
|
|
73
48
|
<sonic-link href="https://heroicons.com/" target="_blank" class="text-center underline">
|
|
74
49
|
<sonic-icon library="heroicons" prefix="outline" name="academic-cap" size="lg"></sonic-icon>
|
|
75
|
-
<br
|
|
50
|
+
<br>
|
|
76
51
|
<div class="text-xs mt-1">heroicons</div>
|
|
77
52
|
</sonic-link>
|
|
78
53
|
<sonic-link href="https://iconoir.com/" target="_blank" class="text-center underline">
|
|
79
|
-
<sonic-icon library="iconoir" name="2x2-cell"
|
|
80
|
-
<br
|
|
54
|
+
<sonic-icon library="iconoir" name="2x2-cell" size="lg"></sonic-icon>
|
|
55
|
+
<br>
|
|
81
56
|
<div class="text-xs mt-1">iconoir</div>
|
|
82
57
|
</sonic-link>
|
|
83
58
|
<sonic-link href="https://materialdesignicons.com/" target="_blank" class="text-center underline">
|
|
84
59
|
<sonic-icon library="material" prefix="outline" name="email" size="lg"></sonic-icon>
|
|
85
|
-
<br
|
|
60
|
+
<br>
|
|
86
61
|
<div class="text-xs mt-1">material design</div>
|
|
87
62
|
</sonic-link>
|
|
88
63
|
<sonic-link href="https://fontawesome.com/search?o=r&m=free&s=regular" target="_blank" class="text-center underline">
|
|
89
64
|
<sonic-icon library="fontAwesome" prefix="regular" name="user" size="lg"></sonic-icon>
|
|
90
|
-
<br
|
|
65
|
+
<br>
|
|
91
66
|
<div class="text-xs mt-1">fontAwesome regular</div>
|
|
92
67
|
</sonic-link>
|
|
93
68
|
<sonic-link href="https://fontawesome.com/search?o=r&m=free&s=solid" target="_blank" class="text-center underline">
|
|
94
69
|
<sonic-icon library="fontAwesome" prefix="solid" name="book" size="lg"></sonic-icon>
|
|
95
|
-
<br
|
|
70
|
+
<br>
|
|
96
71
|
<div class="text-xs mt-1">fontAwesome solid</div>
|
|
97
72
|
</sonic-link>
|
|
98
73
|
<sonic-link href="https://feathericons.com/" target="_blank" class="text-center underline">
|
|
99
|
-
<sonic-icon library="feathers" name="activity"
|
|
100
|
-
<br
|
|
74
|
+
<sonic-icon library="feathers" name="activity" size="lg"></sonic-icon>
|
|
75
|
+
<br>
|
|
101
76
|
<div class="text-xs mt-1">feathers</div>
|
|
102
77
|
</sonic-link>
|
|
103
78
|
<sonic-link href="https://lucide.dev/" target="_blank" class="text-center underline">
|
|
104
|
-
<sonic-icon library="lucide" name="album"
|
|
105
|
-
<br
|
|
79
|
+
<sonic-icon library="lucide" name="album" size="lg"></sonic-icon>
|
|
80
|
+
<br>
|
|
106
81
|
<div class="text-xs mt-1">lucide</div>
|
|
107
82
|
</sonic-link>
|
|
108
83
|
</div>
|
|
109
84
|
</code></pre>
|
|
110
|
-
<h2 id="custom-library">Custom library</h2>
|
|
111
|
-
<p>Use <strong><code>library="custom"</code></strong> with SVG files on your origin. On an ancestor (for example <strong><code>sonic-scope</code></strong> or <strong><code>sonic-code</code></strong>), set <strong><code>customIconLibraryPath</code></strong> to a URL template with <strong><code>$prefix</code></strong> and <strong><code>$name</code></strong> placeholders, and optionally <strong><code>customIconDefaultPrefix</code></strong> when <strong><code>prefix</code></strong> is omitted.</p>
|
|
112
|
-
<pre><code><sonic-scope
|
|
113
|
-
customIconLibraryPath="/svg/$prefix/$name.svg"
|
|
114
|
-
customIconDefaultPrefix="regular"
|
|
115
|
-
>
|
|
116
|
-
<div class="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-8">
|
|
117
|
-
<div class="text-center">
|
|
118
|
-
<sonic-icon library="custom" prefix="regular" name="plane"></sonic-icon>
|
|
119
|
-
<br />
|
|
120
|
-
<div class="text-xs mt-1">regular</div>
|
|
121
|
-
</div>
|
|
122
|
-
<div class="text-center">
|
|
123
|
-
<sonic-icon library="custom" prefix="solid" name="plane"></sonic-icon>
|
|
124
|
-
<br />
|
|
125
|
-
<div class="text-xs mt-1">solid</div>
|
|
126
|
-
</div>
|
|
127
|
-
<div class="text-center">
|
|
128
|
-
<sonic-icon library="custom" name="plane"></sonic-icon>
|
|
129
|
-
<br />
|
|
130
|
-
<div class="text-xs mt-1">default prefix</div>
|
|
131
|
-
</div>
|
|
132
|
-
</div>
|
|
133
|
-
</sonic-scope>
|
|
134
|
-
</code></pre>
|
|
135
85
|
<h2 id="size">Size</h2>
|
|
136
|
-
<
|
|
137
|
-
<pre><code><div class="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-8">
|
|
86
|
+
<pre><code><div class="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 gap-8">
|
|
138
87
|
<div class="text-center">
|
|
139
88
|
<sonic-icon library="heroicons" prefix="outline" name="academic-cap" size="2xs"></sonic-icon>
|
|
140
|
-
<br
|
|
89
|
+
<br>
|
|
141
90
|
<div class="text-xs mt-1">2xs</div>
|
|
142
91
|
</div>
|
|
143
92
|
<div class="text-center">
|
|
144
93
|
<sonic-icon library="heroicons" prefix="outline" name="academic-cap" size="xs"></sonic-icon>
|
|
145
|
-
<br
|
|
94
|
+
<br>
|
|
146
95
|
<div class="text-xs mt-1">xs</div>
|
|
147
96
|
</div>
|
|
148
97
|
<div class="text-center">
|
|
149
98
|
<sonic-icon library="heroicons" prefix="outline" name="academic-cap" size="sm"></sonic-icon>
|
|
150
|
-
<br
|
|
99
|
+
<br>
|
|
151
100
|
<div class="text-xs mt-1">sm</div>
|
|
152
101
|
</div>
|
|
153
102
|
<div class="text-center">
|
|
154
103
|
<sonic-icon library="heroicons" prefix="outline" name="academic-cap"></sonic-icon>
|
|
155
|
-
<br
|
|
104
|
+
<br>
|
|
156
105
|
<div class="text-xs mt-1">default</div>
|
|
157
106
|
</div>
|
|
158
107
|
<div class="text-center">
|
|
159
108
|
<sonic-icon library="heroicons" prefix="outline" name="academic-cap" size="lg"></sonic-icon>
|
|
160
|
-
<br
|
|
109
|
+
<br>
|
|
161
110
|
<div class="text-xs mt-1">lg</div>
|
|
162
111
|
</div>
|
|
163
112
|
<div class="text-center">
|
|
164
113
|
<sonic-icon library="heroicons" prefix="outline" name="academic-cap" size="xl"></sonic-icon>
|
|
165
|
-
<br
|
|
114
|
+
<br>
|
|
166
115
|
<div class="text-xs mt-1">xl</div>
|
|
167
116
|
</div>
|
|
168
117
|
<div class="text-center">
|
|
169
118
|
<sonic-icon library="heroicons" prefix="outline" name="academic-cap" size="2xl"></sonic-icon>
|
|
170
|
-
<br
|
|
119
|
+
<br>
|
|
171
120
|
<div class="text-xs mt-1">2xl</div>
|
|
172
121
|
</div>
|
|
173
122
|
<div class="text-center">
|
|
174
123
|
<sonic-icon library="heroicons" prefix="outline" name="academic-cap" size="3xl"></sonic-icon>
|
|
175
|
-
<br
|
|
124
|
+
<br>
|
|
176
125
|
<div class="text-xs mt-1">3xl</div>
|
|
177
126
|
</div>
|
|
178
127
|
</div>
|
|
179
128
|
</code></pre>
|
|
180
|
-
<h2 id="accessibility">Accessibility</h2>
|
|
181
|
-
<p>On connect, the host sets <strong><code>aria-hidden="true"</code></strong>. Treat icons as decorative unless the surrounding control already has an accessible name. Do not rely on <strong><code>sonic-icon</code></strong> alone for meaning—use visible text or <strong><code>aria-label</code></strong> on the parent button / link.</p>
|
|
182
|
-
<pre><code><sonic-button type="neutral" variant="outline" shape="circle" aria-label="User profile">
|
|
183
|
-
<sonic-icon library="iconoir" name="user"></sonic-icon>
|
|
184
|
-
</sonic-button>
|
|
185
|
-
</code></pre>
|
|
186
|
-
<h2 id="api-reference">API reference</h2>
|
|
187
|
-
<table>
|
|
188
|
-
<thead>
|
|
189
|
-
<tr>
|
|
190
|
-
<th>Attribute</th>
|
|
191
|
-
<th>Values</th>
|
|
192
|
-
<th>Description</th>
|
|
193
|
-
</tr>
|
|
194
|
-
</thead>
|
|
195
|
-
<tbody><tr>
|
|
196
|
-
<td><code>name</code></td>
|
|
197
|
-
<td>string</td>
|
|
198
|
-
<td>Icon id in the core bundle or in the remote library</td>
|
|
199
|
-
</tr>
|
|
200
|
-
<tr>
|
|
201
|
-
<td><code>library</code></td>
|
|
202
|
-
<td><code>heroicons</code> · <code>iconoir</code> · <code>feathers</code> · <code>lucide</code> · <code>material</code> · <code>fontAwesome</code> · <code>custom</code></td>
|
|
203
|
-
<td>CDN or custom template; omit for bundled core icons</td>
|
|
204
|
-
</tr>
|
|
205
|
-
<tr>
|
|
206
|
-
<td><code>prefix</code></td>
|
|
207
|
-
<td>string</td>
|
|
208
|
-
<td>Library-specific variant; defaults per library when empty</td>
|
|
209
|
-
</tr>
|
|
210
|
-
<tr>
|
|
211
|
-
<td><code>size</code></td>
|
|
212
|
-
<td><code>2xs</code> · <code>xs</code> · <code>sm</code> · <code>lg</code> · <code>xl</code> · <code>2xl</code> · <code>3xl</code> (default <code>md</code>)</td>
|
|
213
|
-
<td><code>em</code>-based SVG scale on the host</td>
|
|
214
|
-
</tr>
|
|
215
|
-
</tbody></table>
|
|
216
|
-
<p>Ancestor attributes (for <strong><code>library="custom"</code></strong> only): <strong><code>customIconLibraryPath</code></strong> (URL template with <strong><code>$prefix</code></strong> and <strong><code>$name</code></strong>) and <strong><code>customIconDefaultPrefix</code></strong>. May be set on <strong><code>sonic-scope</code></strong>, theme roots, or globally in the document.</p>
|
|
217
|
-
<p>No slots — the component inlines fetched or bundled SVG markup.</p>
|
|
218
129
|
|
|
219
130
|
</article>
|
|
220
131
|
</main>
|