mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 19:01:05 +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]
28 lines
708 B
Svelte
28 lines
708 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
|
|
d="M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"
|
|
></path>
|
|
</svg>
|