Skip to content

Commit

Permalink
feat(RichText): tag dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
prazdevs committed Nov 24, 2024
1 parent ad1b2ea commit 6d7efb6
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions components/rich-text/RichTextTag.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,25 @@ defineProps<{
</script>

<template>
<NuxtLink :to="`/hashtag/${tag}`">
{{ text }}
</NuxtLink>
<CommonDropdown inline-flex>
<button>{{ text }}</button>
<template #popper>
<NuxtLink :to="`/hashtag/${tag}`">
<CommonDropdownItem
:text="`See ${tag} posts`"
icon="i-ri:search-line"
/>
</NuxtLink>
<NuxtLink :to="`/hashtag/${tag}`">
<CommonDropdownItem
:text="`See ${tag} posts by user`"
icon="i-ri:user-line"
/>
</NuxtLink>
<CommonDropdownItem
:text="`Mute ${tag}`"
icon="i-ri:eye-off-line"
/>
</template>
</CommonDropdown>
</template>

0 comments on commit 6d7efb6

Please sign in to comment.