1
0
forked from wrenn/wrenn
Files
wrenn-releases/frontend/src/lib/components/icons/IconChevron.svelte
2026-03-22 21:01:23 +00:00

31 lines
572 B
Svelte

<script lang="ts">
let {
size = 18,
direction = 'down',
class: className = ''
}: { size?: number; direction?: 'up' | 'down' | 'left' | 'right'; class?: string } = $props();
const rotation = {
up: '180',
down: '0',
left: '90',
right: '-90'
};
</script>
<svg
width={size}
height={size}
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="1.75"
stroke-linecap="round"
stroke-linejoin="round"
class={className}
style="transform: rotate({rotation[direction]}deg)"
aria-hidden="true"
>
<polyline points="6 9 12 15 18 9" />
</svg>