{"id":19311975,"url":"https://github.com/weblineindia/vue-url-component","last_synced_at":"2026-06-11T01:31:37.617Z","repository":{"id":129985199,"uuid":"275146457","full_name":"weblineindia/Vue-URL-Component","owner":"weblineindia","description":"A VueJS based URL component provides option to add url (like Instagram url, Facebook url, web url, etc.) with validation. The URL value is automatically validated on blur event. You can even disable url field using disable props.","archived":false,"fork":false,"pushed_at":"2023-12-27T08:01:26.000Z","size":56,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-06T11:56:42.497Z","etag":null,"topics":["url-validation","urlcomponents","vue","vue-component","vue-component-library","vue-components","vue-plugin","vue-plugins","vue-url","vue-url-validation","vuecomponent","vuecomponents","vuejs","vuejs-component","vuejs-components","vuejs-library","vuejs-plugin","vuejs-snippets"],"latest_commit_sha":null,"homepage":"https://www.weblineindia.com/communities.html","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/weblineindia.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-06-26T12:05:01.000Z","updated_at":"2023-12-27T08:01:03.000Z","dependencies_parsed_at":"2023-12-27T09:22:49.541Z","dependency_job_id":null,"html_url":"https://github.com/weblineindia/Vue-URL-Component","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FVue-URL-Component","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FVue-URL-Component/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FVue-URL-Component/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weblineindia%2FVue-URL-Component/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weblineindia","download_url":"https://codeload.github.com/weblineindia/Vue-URL-Component/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240415216,"owners_count":19797599,"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":["url-validation","urlcomponents","vue","vue-component","vue-component-library","vue-components","vue-plugin","vue-plugins","vue-url","vue-url-validation","vuecomponent","vuecomponents","vuejs","vuejs-component","vuejs-components","vuejs-library","vuejs-plugin","vuejs-snippets"],"created_at":"2024-11-10T00:31:48.713Z","updated_at":"2025-11-15T14:18:21.730Z","avatar_url":"https://github.com/weblineindia.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VueJS URL Component\n\nA Vue Url component is provide to add url (like instagramUrl,facebookUrl,webUrl, ..) with validation.\nThe Url value is automatically validated on blur event.\nYou can also disable url field using disable props.\n\n\n## Table of contents\n\n- [Browser Support](#browser-support)\n- [Demo](#demo)\n- [Getting started](#getting-started)\n- [Usage](#usage)\n- [Available Props](#available-props)\n- [Methods](#methods)\n- [Want to Contribute?](#want-to-contribute)\n- [Need Help / Support?](#need-help)\n- [Collection of Components](#collection-of-components)\n- [Changelog](#changelog)\n- [License](#license)\n- [Keywords](#Keywords)\n\n## Browser Support\n\n| ![Chrome](https://raw.github.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/src/safari/safari_48x48.png) | ![Edge](https://raw.github.com/alrra/browser-logos/master/src/edge/edge_48x48.png) | ![IE](https://raw.github.com/alrra/browser-logos/master/src/archive/internet-explorer_9-11/internet-explorer_9-11_48x48.png) |\n| ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |\n| 83.0 ✔                                                                                   | 77.0 ✔                                                                                      | 13.1.1 ✔                                                                                 | 83.0 ✔                                                                             | 11.9 ✔                                                                                                                       |\n\n## Demo\n\n\n[![](url.gif)](https://github.com/weblineindia/Vue-URL-Component/url.gif)\n\n## Getting started\n\nInstall the npm package:\n\n```bash\nnpm install vue-weblineindia-url\n#OR\nyarn add vue-weblineindia-url\n```\n\n## Usage\n\nUse the `\u003cvue-weblineindia-url\u003e` component:\n\n```vue\n\u003ctemplate\u003e\n  \u003cdiv\u003e\n     \u003cURL\n      id=\"facebookUrl\"\n      name=\"facebookUrl\"\n      social-type=\"FACEBOOK\"\n      :tabindex=\"1\"\n      :placeholder=\"'Facebook Url'\"\n      :value=\"urlValue\"\n      :hide=\"false\"\n      :disabled=\"false\"\n      @focus=\"onFocus\"\n      @onBlur=\"onBlur\"\n      @onChange=\"onChangeUrl\"\n      :validation-regx=\"facebookUrlRegex\"\n    /\u003e\n    \u003cp\n      v-show=\"invalidFacebookUrlError\"\n      :class=\"{\n        control: true,\n        'error-msg': invalidFacebookUrlError\n      }\"\n    \u003e\n      \u003cspan\u003eThe url entered is not valid and must be changed\u003c/span\u003e\n    \u003c/p\u003e\n  \u003c/div\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\nimport URL from \"vue-weblineindia-url\";\nexport default {\n  components: { URL },\n  data: function() {\n    return {\n      urlValue: \"\",\n      invalidFacebookUrlError: false,\n      facebookUrlRegex: /(?:(?:http|https):\\/\\/)?(?:www.)?facebook.com\\/(?:(?:\\w)*#!\\/)?(?:pages\\/)?(?:[?\\w\\-]*\\/)?(?:profile.php\\?id=(?=\\d.*))?([\\w\\-]*)?/    };\n  },\n\n  methods: {\n   /** on focus url field */\n    onFocus(event) {\n      event.target.placeholder = \"\";\n    },\n    /** on blur url field */\n    onBlur(event, placeholder, errorObj) {\n      event.target.placeholder = placeholder;\n      const id = event.target.id;\n      this.showUrlErrorMsg(id, errorObj);\n    },\n    /**\n     * To show invalid url error msg\n     */\n    showUrlErrorMsg(id, errorObject) {\n      if (errorObject.items.length \u003e 0) {\n        errorObject.items.map(err =\u003e {\n          const urlId = err.field;\n          switch (urlId) {\n            case \"facebookUrl\":\n              this.invalidFacebookUrlError = true;\n              break;\n          }\n        });\n      }\n    },\n    /** on change value on url**/\n    onChangeUrl(value, id, index, error) {\n      this.invalidFacebookUrlError = false;\n      this.urlValue = value;\n    }\n  }\n};\n\u003c/script\u003e\n```\n\n\n\n## Available Props\n\n| Prop               | Type                                                                      | default | Description                                                                                                                                                                                                                                                     |\n| ------------------ | ------------------------------------------------------------------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| value                 | String                                                                    |       | url value         |\n| socialType          | String                                                                    |  FACEBOOK       |  url type     |                                                                                                                                                                                                                              \n| validationRegx        | RegExp                                                                    |         | regex for url                                                                                                                                                                                                                 |\n| placeholder              | String                                                                    | facebookUrl | url placeholder                                                                                                                                        |\n| disabled            | Boolean                                                         | false    | disable url field|\n|name | String                                                                   | facebookUrl   | name for url field                                                                                                                                                                                                                  |\n| tabindex | Number | 1    | url tabIndex |\n| id | String | facebookUrl    | name for url field |\n| hide | Boolean | false   | for hide url field |\n\n\n\n## Methods\n\n| Name         | Description                                      |\n| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| focus        | Gets triggered when the url input field receives focus.    |\n| onBlur         | Gets triggered when the url input field loses focus. |\n| onChange  | Gets triggered every time url got changed. |                                                                                                                                       \n\n## Want to Contribute?\n\n- Created something awesome, made this code better, added some functionality, or whatever (this is the hardest part).\n- [Fork it](http://help.github.com/forking/).\n- Create new branch to contribute your changes.\n- Commit all your changes to your branch.\n- Submit a [pull request](http://help.github.com/pull-requests/).\n\n---\n\n## Need Help?\n\nWe also provide a free, basic support for all users who want to use this VueJS URL Component in their software project. In case you want to customize this Url component to suit your development needs, then feel free to contact our [VueJS developers](https://www.weblineindia.com/hire-vuejs-developer.html).\n\n---\n\n## Collection of Components\n\nWe have built many other components and free resources for software development in various programming languages. Kindly click here to view our [Free Resources for Software Development](https://www.weblineindia.com/communities.html)\n\n---\n\n## Changelog\n\nDetailed changes for each release are documented in [CHANGELOG.md](./CHANGELOG.md).\n\n## License\n\n[MIT](LICENSE)\n\n[mit]: https://github.com/weblineindia/Vue-URL-Component/blob/master/LICENSE\n\n## Keywords\n\nvue-weblineindia-url,url,vue components,vuejs,vuejs component\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweblineindia%2Fvue-url-component","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweblineindia%2Fvue-url-component","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweblineindia%2Fvue-url-component/lists"}