{"id":20496490,"url":"https://github.com/justforuse/functional-button","last_synced_at":"2025-10-10T23:39:53.877Z","repository":{"id":34878011,"uuid":"186125486","full_name":"justforuse/functional-button","owner":"justforuse","description":"⚙Functional button","archived":false,"fork":false,"pushed_at":"2023-02-28T18:00:36.000Z","size":1972,"stargazers_count":2,"open_issues_count":22,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-16T10:35:42.783Z","etag":null,"topics":["button","plugin","vue","vuejs"],"latest_commit_sha":null,"homepage":"https://justforuse.github.io/functional-button/docs/","language":"JavaScript","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/justforuse.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}},"created_at":"2019-05-11T11:38:42.000Z","updated_at":"2023-08-04T06:39:20.000Z","dependencies_parsed_at":"2023-01-15T09:50:07.668Z","dependency_job_id":null,"html_url":"https://github.com/justforuse/functional-button","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/justforuse%2Ffunctional-button","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justforuse%2Ffunctional-button/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justforuse%2Ffunctional-button/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justforuse%2Ffunctional-button/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justforuse","download_url":"https://codeload.github.com/justforuse/functional-button/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242078690,"owners_count":20068591,"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":["button","plugin","vue","vuejs"],"created_at":"2024-11-15T18:07:26.456Z","updated_at":"2025-10-10T23:39:48.842Z","avatar_url":"https://github.com/justforuse.png","language":"JavaScript","readme":"# functional-button\n\n[![npm](https://img.shields.io/npm/v/functional-button.svg) ![npm](https://img.shields.io/npm/dm/functional-button.svg)](https://www.npmjs.com/package/functional-button)\n[![vue2](https://img.shields.io/badge/vue-2.x-brightgreen.svg)](https://vuejs.org/)\n[![HitCount](http://hits.dwyl.io/justforuse/functional-button.svg)](http://hits.dwyl.io/justforuse/functional-button)\n\nUseful functional button for ElementUI\n\n\u003e Project is generated by https://github.com/justforuse/vue-share-components\n\n## Table of contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [Example](#example)\n\n# Installation\n\n```\nnpm install --save functional-button\n```\n\n## Default import\n\nInstall all the components:\n\n```javascript\nimport Vue from 'vue'\nimport FunctionalButton from 'functional-button'\n\nVue.use(FunctionalButton)\n```\n\nUse specific components:\n\n```javascript\nimport Vue from 'vue'\nimport { Test } from 'functional-button'\n\nVue.component('test', Test)\n```\n\n**⚠️ A css file is included when importing the package. You may have to setup your bundler to embed the css in your page.**\n\n## Distribution import\n\nInstall all the components:\n\n```javascript\nimport 'functional-button/dist/functional-button.css'\nimport FunctionalButton from 'functional-button/dist/functional-button.common'\n\nVue.use(FunctionalButton)\n```\n\nUse specific components:\n\n```javascript\nimport 'functional-button/dist/functional-button.css'\nimport { DeferBtn } from 'functional-button/dist/functional-button.common'\n\nVue.component('DeferBtn', DeferBtn)\n```\n\n**⚠️ You may have to setup your bundler to embed the css file in your page.**\n\n## Browser\n\n```html\n\u003clink rel=\"stylesheet\" href=\"functional-button/dist/functional-button.css\"/\u003e\n\n\u003cscript src=\"vue.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"functional-button/dist/functional-button.browser.js\"\u003e\u003c/script\u003e\n```\n\nThe plugin should be auto-installed. If not, you can install it manually with the instructions below.\n\nInstall all the components:\n\n```javascript\nVue.use(FunctionalButton)\n```\n\nUse specific components:\n\n```javascript\nVue.component('DeferBtn', FunctionalButton.DeferBtn)\n```\n\n## Source import\n\nInstall all the components:\n\n```javascript\nimport Vue from 'vue'\nimport FunctionalButton from 'functional-button/src'\n\nVue.use(FunctionalButton)\n```\n\nUse specific components:\n\n```javascript\nimport Vue from 'vue'\nimport { DeferBtn } from 'functional-button/src'\n\nVue.component('DeferBtn', DeferBtn)\n```\n\n**⚠️ You need to configure your bundler to compile `.vue` files.** More info [in the official documentation](https://vuejs.org/v2/guide/single-file-components.html).\n\n# Usage\n\n\u003e TODO\n\n# Example\n\nhttps://codesandbox.io/s/24jx3zz2ny\n\n---\n\n# Plugin Development\n\n## Installation\n\nThe first time you create or clone your plugin, you need to install the default dependencies:\n\n```\nnpm install\n```\n\n## Watch and compile\n\nThis will run webpack in watching mode and output the compiled files in the `dist` folder.\n\n```\nnpm run dev\n```\n\n## Use it in another project\n\nWhile developping, you can follow the install instructions of your plugin and link it into the project that uses it.\n\nIn the plugin folder:\n\n```\nnpm link\n```\n\nIn the other project folder:\n\n```\nnpm link functional-button\n```\n\nThis will install it in the dependencies as a symlink, so that it gets any modifications made to the plugin.\n\n## Publish to npm\n\nYou may have to login to npm before, with `npm adduser`. The plugin will be built in production mode before getting published on npm.\n\n```\nnpm publish\n```\n\n## Manual build\n\nThis will build the plugin into the `dist` folder in production mode.\n\n```\nnpm run build\n```\n\n---\n\n## License\n\n[MIT](http://opensource.org/licenses/MIT)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustforuse%2Ffunctional-button","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustforuse%2Ffunctional-button","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustforuse%2Ffunctional-button/lists"}