Skip to content
Snippets Groups Projects
Commit 64d8ec3a authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

feat: add custom content slot to Tag

parent c19af0d3
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
<span <span
class="tw-py-1 tw-px-2 tw-flex tw-items-center tw-bg-gray-100 tw-flex-none tw-rounded tw-max-w-full" class="tw-py-1 tw-px-2 tw-flex tw-items-center tw-bg-gray-100 tw-flex-none tw-rounded tw-max-w-full"
> >
<span class="tw-min-w-0 tw-truncate tw-flex-1">{{ label }}</span> <span class="tw-min-w-0 tw-truncate tw-flex-1">
<slot>{{ label }}</slot>
</span>
<button <button
v-if="removable" v-if="removable"
type="button" type="button"
...@@ -17,7 +19,7 @@ ...@@ -17,7 +19,7 @@
<script lang="ts" setup> <script lang="ts" setup>
defineOptions({ compatConfig: { MODE: 3 } }) defineOptions({ compatConfig: { MODE: 3 } })
defineProps<{ defineProps<{
label: string label?: string
removable?: boolean removable?: boolean
}>() }>()
const emit = defineEmits<{ const emit = defineEmits<{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment