Skip to content

Commit 2063656

Browse files
committed
feat(NcIcon): add type hints for icon names
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent 2d036a1 commit 2063656

2 files changed

Lines changed: 3952 additions & 1 deletion

File tree

src/components/NcIcon/NcIcon.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@
44
-->
55

66
<script setup lang="ts">
7+
import type { NcIconName } from './types.d.ts'
8+
79
import { generateFilePath } from '@nextcloud/router'
810
import { computed } from 'vue'
911
1012
const props = withDefaults(defineProps<{
1113
/**
1214
* The name of the icon to use.
1315
*/
14-
icon: string
16+
icon: NcIconName
1517
1618
/**
1719
* If set the icon will be mirrored in right-to-left languages.

0 commit comments

Comments
 (0)