50 lines
1.6 KiB
Vue
50 lines
1.6 KiB
Vue
<script setup lang="ts">
|
|
export type UiIconName = 'close' | 'clock' | 'hammer' | 'up' | 'minus' | 'plus' | 'pin' | 'users' | 'globe' | 'logout'
|
|
|
|
defineProps<{ name: UiIconName }>()
|
|
</script>
|
|
|
|
<!-- Interface glyphs in currentColor. -->
|
|
<template>
|
|
<svg
|
|
viewBox="0 0 24 24"
|
|
fill="none"
|
|
stroke="currentColor"
|
|
stroke-width="2"
|
|
stroke-linecap="round"
|
|
stroke-linejoin="round"
|
|
aria-hidden="true"
|
|
class="shrink-0"
|
|
>
|
|
<path v-if="name === 'close'" d="M6 6l12 12M18 6L6 18" />
|
|
<g v-else-if="name === 'clock'">
|
|
<circle cx="12" cy="12" r="9" />
|
|
<path d="M12 7v5l3 2" />
|
|
</g>
|
|
<g v-else-if="name === 'hammer'">
|
|
<path d="M14 7l-9.5 9.5a1.8 1.8 0 0 0 2.5 2.5L16.5 9.5" />
|
|
<path d="M12.5 5.5l3-3 6 6-3 3z" />
|
|
</g>
|
|
<path v-else-if="name === 'up'" d="M12 19V5M6 11l6-6 6 6" />
|
|
<path v-else-if="name === 'minus'" d="M6 12h12" />
|
|
<path v-else-if="name === 'plus'" d="M12 6v12M6 12h12" />
|
|
<g v-else-if="name === 'pin'">
|
|
<path d="M12 21s-6-5.5-6-11a6 6 0 0 1 12 0c0 5.5-6 11-6 11z" />
|
|
<circle cx="12" cy="10" r="2" />
|
|
</g>
|
|
<g v-else-if="name === 'users'">
|
|
<circle cx="9" cy="8" r="3.5" />
|
|
<path d="M2.5 20c.5-3.5 3-5.5 6.5-5.5s6 2 6.5 5.5" />
|
|
<path d="M16 4.5a3.5 3.5 0 0 1 0 7M18 14.5c2 .6 3.2 2.5 3.5 5.5" />
|
|
</g>
|
|
<g v-else-if="name === 'globe'">
|
|
<circle cx="12" cy="12" r="9" />
|
|
<path d="M3 12h18M12 3c2.5 2.7 3.8 5.7 3.8 9s-1.3 6.3-3.8 9c-2.5-2.7-3.8-5.7-3.8-9S9.5 5.7 12 3z" />
|
|
</g>
|
|
<g v-else>
|
|
<path d="M15 4h3a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-3" />
|
|
<path d="M10 16l-4-4 4-4M6 12h10" />
|
|
</g>
|
|
</svg>
|
|
</template>
|