{"id":13810580,"url":"https://github.com/Akryum/vue-mention","last_synced_at":"2025-05-14T10:34:10.610Z","repository":{"id":37211535,"uuid":"255973119","full_name":"Akryum/vue-mention","owner":"Akryum","description":"Mention component for Vue.js","archived":false,"fork":false,"pushed_at":"2022-12-15T16:06:39.000Z","size":2821,"stargazers_count":550,"open_issues_count":49,"forks_count":59,"subscribers_count":5,"default_branch":"next","last_synced_at":"2025-04-19T21:09:26.164Z","etag":null,"topics":["mention","suggestion","vuejs"],"latest_commit_sha":null,"homepage":"https://vue-mention.netlify.app/","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Akryum.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"Akryum"}},"created_at":"2020-04-15T16:19:44.000Z","updated_at":"2025-04-08T23:58:15.000Z","dependencies_parsed_at":"2023-01-29T03:46:08.248Z","dependency_job_id":null,"html_url":"https://github.com/Akryum/vue-mention","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Akryum%2Fvue-mention","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Akryum%2Fvue-mention/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Akryum%2Fvue-mention/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Akryum%2Fvue-mention/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Akryum","download_url":"https://codeload.github.com/Akryum/vue-mention/tar.gz/refs/heads/next","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254121261,"owners_count":22018133,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mention","suggestion","vuejs"],"created_at":"2024-08-04T02:01:01.052Z","updated_at":"2025-05-14T10:34:05.583Z","avatar_url":"https://github.com/Akryum.png","language":"Vue","funding_links":["https://github.com/sponsors/Akryum"],"categories":["Vue"],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://vue-mention.netlify.app/\" target=\"_blank\"\u003e\n    \u003cimg src=\"./packages/docs/src/.vuepress/public/vue-mention.svg\" alt=\"logo\" width=\"128\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/vue-mention\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/v/vue-mention.svg\" alt=\"Version\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/vue-mention\"\u003e\n    \u003cimg src=\"https://img.shields.io/npm/dm/vue-mention.svg\" alt=\"Downloads\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n# vue-mention\n\nMention popper for input and textarea\n\n[Documentation](https://vue-mention.netlify.app/)\n\n## Vue 3 support\n\nInstall the v2 for Vue 3 support:\n\n```\npnpm i vue-mention@next\n```\n\nYou also need to install `floating-vue`:\n\n```\npnpm i floating-vue\n```\n\nAnd add the default `floating-vue` styles:\n\n```js\nimport 'floating-vue/dist/style.css'\n```\n\n## floating-vue 1 (Vue 2)\n\nInstall the special version for floating-vue v1 (for Vue 2) support:\n\n```\npnpm i vue-mention@1.0.0-floating-vue1\n```\n\n**:warning: Use the exact version range `1.0.0-floating-vue1` otherwise you'll install `v1.1.0` which is for v-tooltip 2.**\n\nYou also need to install `floating-vue` v1:\n\n```\npnpm i floating-vue@vue2\n```\n\nAnd add the default `floating-vue` styles:\n\n```js\nimport 'floating-vue/dist/style.css'\n```\n\n## Sponsors\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://guillaume-chau.info/sponsors/\" target=\"_blank\"\u003e\n    \u003cimg src='https://akryum.netlify.app/sponsors.svg'/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## Quick start\n\n```vue\n\u003cscript\u003e\nimport { Mentionable } from 'vue-mention'\n\nconst users = [\n  {\n    value: 'akryum',\n    firstName: 'Guillaume',\n  },\n  {\n    value: 'posva',\n    firstName: 'Eduardo',\n  },\n  {\n    value: 'atinux',\n    firstName: 'Sébastien',\n  },\n]\n\nconst issues = [\n  {\n    value: 123,\n    label: 'Error with foo bar',\n    searchText: 'foo bar'\n  },\n  {\n    value: 42,\n    label: 'Cannot read line',\n    searchText: 'foo bar line'\n  },\n  {\n    value: 77,\n    label: 'I have a feature suggestion',\n    searchText: 'feature'\n  }\n]\n\nexport default {\n  components: {\n    Mentionable,\n  },\n\n  data () {\n    return {\n      text: '',\n      items: [],\n    }\n  },\n\n  methods: {\n    onOpen (key) {\n      this.items = key === '@' ? users : issues\n    },\n  },\n}\n\u003c/script\u003e\n\n\u003ctemplate\u003e\n  \u003cMentionable\n    :keys=\"['@', '#']\"\n    :items=\"items\"\n    offset=\"6\"\n    insert-space\n    @open=\"onOpen\"\n  \u003e\n    \u003ctextarea\n      v-model=\"text\"\n    /\u003e\n\n    \u003ctemplate #no-result\u003e\n      \u003cdiv class=\"dim\"\u003e\n        No result\n      \u003c/div\u003e\n    \u003c/template\u003e\n\n    \u003ctemplate #item-@=\"{ item }\"\u003e\n      \u003cdiv class=\"user\"\u003e\n        {{ item.value }}\n        \u003cspan class=\"dim\"\u003e\n          ({{ item.firstName }})\n        \u003c/span\u003e\n      \u003c/div\u003e\n    \u003c/template\u003e\n\n    \u003ctemplate #item-#=\"{ item }\"\u003e\n      \u003cdiv class=\"issue\"\u003e\n        \u003cspan class=\"number\"\u003e\n          #{{ item.value }}\n        \u003c/span\u003e\n        \u003cspan class=\"dim\"\u003e\n          {{ item.label }}\n        \u003c/span\u003e\n      \u003c/div\u003e\n    \u003c/template\u003e\n  \u003c/Mentionable\u003e\n\u003c/template\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAkryum%2Fvue-mention","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAkryum%2Fvue-mention","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAkryum%2Fvue-mention/lists"}