enso/app/gui2/stories/AllSvgIcons.story.vue
somebody1234 f2651d58e4
[gui2] Component demos (#7945)
- Closes #7916

# Important Notes
None
2023-10-29 19:02:07 +00:00

32 lines
593 B
Vue

<script setup lang="ts">
import SvgIcon from '@/components/SvgIcon.vue'
import iconList from '@/util/iconList.json'
import type { Icon } from '@/util/iconName'
const iconListAsIcons = iconList as Icon[]
</script>
<template>
<Story
title="All SVG Icons"
group="misc"
:layout="{ type: 'grid', width: 100 }"
autoPropsDisabled
>
<Variant v-for="icon in iconListAsIcons" :key="icon" :title="icon">
<SvgIcon :name="icon" />
</Variant>
</Story>
</template>
<style scoped>
.toggle-icon {
opacity: 30%;
}
.toggle-icon.toggledOn {
opacity: unset;
}
</style>