Skip to content

Commit

Permalink
Add PTag props to PTags.
Browse files Browse the repository at this point in the history
  • Loading branch information
collincchoy committed Dec 20, 2023
1 parent 16495ee commit fb98d35
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Tags/PTags.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div class="p-tags">
<PTag v-for="tag in tags" :key="tag.label">
<PTag v-for="tag in tags" :key="tag.label" :dismissible="dismissible" :size="size">
<slot :tag="tag">
{{ tag.label }}
</slot>
Expand All @@ -15,6 +15,8 @@
const props = defineProps<{
tags: (string | TagValue)[],
dismissible?: boolean,
size?: 'xs' | 'sm',
}>()
const tags = computed(() => props.tags.map(normalize))
Expand Down

0 comments on commit fb98d35

Please sign in to comment.