{"id":13480622,"url":"https://github.com/basarozcan/vue-tailwindcss-typeahead","last_synced_at":"2026-02-21T15:29:46.527Z","repository":{"id":46679255,"uuid":"313747674","full_name":"basarozcan/vue-tailwindcss-typeahead","owner":"basarozcan","description":"Just another vue\u0026tailwind component that present you complete typeahead/autocomplete input.","archived":false,"fork":false,"pushed_at":"2023-06-06T16:37:31.000Z","size":386,"stargazers_count":20,"open_issues_count":2,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-30T14:42:24.638Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/basarozcan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-11-17T21:29:45.000Z","updated_at":"2023-11-23T06:42:29.000Z","dependencies_parsed_at":"2024-04-09T23:48:36.615Z","dependency_job_id":"a67b2bb9-c163-4d7e-b37e-be005730d911","html_url":"https://github.com/basarozcan/vue-tailwindcss-typeahead","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basarozcan%2Fvue-tailwindcss-typeahead","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basarozcan%2Fvue-tailwindcss-typeahead/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basarozcan%2Fvue-tailwindcss-typeahead/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basarozcan%2Fvue-tailwindcss-typeahead/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/basarozcan","download_url":"https://codeload.github.com/basarozcan/vue-tailwindcss-typeahead/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245835899,"owners_count":20680288,"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":[],"created_at":"2024-07-31T17:00:42.658Z","updated_at":"2026-02-21T15:29:46.498Z","avatar_url":"https://github.com/basarozcan.png","language":"Vue","funding_links":[],"categories":["UI Libraries, Components \u0026 Templates"],"sub_categories":[],"readme":"\n\u003c!-- PROJECT LOGO --\u003e\n\u003cbr /\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/basarozcan/vue-tailwindcss-typeahead\"\u003e\n    \u003cimg src=\"https://github.com/basarozcan/vue-tailwindcss-typeahead/raw/master/images/logo.png\" alt=\"Logo\"\u003e\n  \u003c/a\u003e\n\n  \u003ch3 align=\"center\"\u003evue-tailwindcss-typeahead\u003c/h3\u003e\n\n  \u003cp align=\"center\"\u003e\n    Just another vue\u0026tailwind component that present you complete typeahead/autocomplete input.\n    \u003cbr /\u003e\n    \u003ca href=\"https://github.com/basarozcan/vue-tailwindcss-typeahead\"\u003e\u003cstrong\u003eExplore the docs »\u003c/strong\u003e\u003c/a\u003e\n    \u003cbr /\u003e\n    \u003cbr /\u003e\n    \u003ca href=\"https://codesandbox.io/s/vue-tailwindcss-typeahead-8qetk\"\u003eView Demo on Codesandbox\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/basarozcan/vue-tailwindcss-typeahead/issues\"\u003eReport Bug\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/basarozcan/vue-tailwindcss-typeahead/issues\"\u003eRequest Feature\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\n\n\n\u003c!-- TABLE OF CONTENTS --\u003e\n## Table of Contents\n\n* [About the Project](#about-the-project)\n  * [Built With](#built-with)\n* [Getting Started](#getting-started)\n  * [Installation](#installation)\n  * [Default Import](#default-import)\n  * [Browser](#browser)\n* [Usage](#usage)\n* [Roadmap](#roadmap)\n* [Contributing](#contributing)\n* [License](#license)\n* [Contact](#contact)\n\n\n\n\u003c!-- ABOUT THE PROJECT --\u003e\n## About The Project\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/basarozcan/vue-tailwindcss-typeahead/raw/master/images/component.png\" alt=\"component\" \u003e\n\u003c/p\u003e\nI can't find any independent typeahead/autocomplete input component. All of them comes with UI libraries. \n\n\n### Built With\n\n* Vue\n* Tailwindcss\n\n\u003c!-- GETTING STARTED --\u003e\n## Getting Started\n\nTo get a local copy up and running follow these simple steps.\n\n### Installation\n\n1. Get package from npm\n```sh\nnpm install vue-tailwindcss-typeahead\n```\n\n### Default Import\n\nImport component globally:\n\n```javascript\nimport { VueTwTypeahead } from '@/vue-tailwindcss-typeahead.vue';\nimport { createApp } from \"vue\";\n\nimport App from \"./components/App.vue\";\nconst app = createApp(App)\napp.use(VueTwTypeahead)\napp.mount('#app');\n```\n\n\u003c!-- USAGE EXAMPLES --\u003e\n## Usage\n\n\n### Call the component on parent\n```javascript\n\u003cVueTwTypeahead \n  :lists=\"list\"\n  @selected=\"selectedData\"\n  :ignoredList=\"selectedItemIds\"\n  :clearInputWhenClicked=\"false\"\n  :inputClass=\"['w-full','px-3','py-2','border','border-gray-400','rounded-lg','outline-none','focus:shadow-outline']\"\n  placeholder=\"Please write a city name\"\n\u003e\n\u003c/VueTwTypeahead\u003e\n```\n\n### Code on parent component\n```javascript\n\u003cscript\u003e\n  import {VueTwTypeahead} from '@/vue-tailwindcss-typeahead.vue';\n\n  export default {\n    name: 'ParentComponent',\n    components: {\n      VueTwTypeahead\n    },\n    data() {\n      return {\n        list: [\n          {\n            id: 1,\n            name: \"Amsterdam\",\n          },\n          {\n            id: 2,\n            name: \"Berlin\",\n          },\n          {\n            id: 3,\n            name: \"Istanbul\",\n          },\n        ],\n        selectedItemIds: [],\n        selectedItem: null\n      };\n    },\n    methods: {\n      selectedData(value) {\n        this.selectedItem = value\n      },\n    },\n  }\n\u003c/script\u003e\n```\n\n### Properties\n| props                 | description                                                                                                   | Type    |\n|-----------------------|---------------------------------------------------------------------------------------------------------------|---------|\n| lists                 | pass an array of data. id and name attribute must be passed                                                   | Array   |\n| ignoredList           | selected item's id will be passed to this variable and this item will not be showed if user want to change it | Array   |\n| clearInputWhenClicked | If this is set to true, input will be cleared after selection. Best for multiple selections                   | Boolean |\n| inputClass            | Tailwindcss classes can be passed to change input's class                                                     | Array   |\n| placeholder           | placeholder text for input                                                                                    | String  |\n| @selected             | point method on parent component for custom operations                                                        |         |\n\n\n\u003c!-- ROADMAP --\u003e\n## Roadmap\n\nSee the [open issues](https://github.com/basarozcan/vue-tailwindcss-typeahead/issues) for a list of proposed features (and known issues).\n\n\n\n\u003c!-- CONTRIBUTING --\u003e\n## Contributing\n\nContributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n\n\n\u003c!-- LICENSE --\u003e\n## License\n\nDistributed under the MIT License. See `LICENSE` for more information.\n\n\n\n\u003c!-- CONTACT --\u003e\n## Contact\n\nTwitter - [@basarozcan](https://twitter.com/basarozcan)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasarozcan%2Fvue-tailwindcss-typeahead","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasarozcan%2Fvue-tailwindcss-typeahead","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasarozcan%2Fvue-tailwindcss-typeahead/lists"}