mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-17 11:11:25 +00:00
* chore: update ignore rules, remove unused files * refactor(icons): use icons from carbon-icons-svelte@11 * docs(time-picker): fix default value * chore: upgrade carbon-icons-svelte to v11 * docs: update examples to use icons from carbon-icons-svelte@11 * docs: update number of icons [ci skip]
31 lines
916 B
Svelte
31 lines
916 B
Svelte
<script>
|
|
export let size = 16;
|
|
|
|
export let title = undefined;
|
|
|
|
$: labelled = $$props["aria-label"] || $$props["aria-labelledby"] || title;
|
|
$: attributes = {
|
|
"aria-hidden": labelled ? undefined : true,
|
|
role: labelled ? "img" : undefined,
|
|
focusable: Number($$props["tabindex"]) === 0 ? true : undefined,
|
|
};
|
|
</script>
|
|
|
|
<svg
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
viewBox="0 0 32 32"
|
|
fill="currentColor"
|
|
preserveAspectRatio="xMidYMid meet"
|
|
width="{size}"
|
|
height="{size}"
|
|
{...attributes}
|
|
{...$$restProps}
|
|
>
|
|
{#if title}<title>{title}</title>{/if}
|
|
<path
|
|
fill="none"
|
|
d="M16,8a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,13.875H17.125v-8H13v2.25h1.875v5.75H12v2.25h8Z"
|
|
data-icon-path="inner-path"></path><path
|
|
d="M16,2A14,14,0,1,0,30,16,14,14,0,0,0,16,2Zm0,6a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,16,8Zm4,16.125H12v-2.25h2.875v-5.75H13v-2.25h4.125v8H20Z"
|
|
></path>
|
|
</svg>
|