{"id":19608622,"url":"https://github.com/teamwork/public-components","last_synced_at":"2026-06-13T11:32:34.980Z","repository":{"id":69551466,"uuid":"301393931","full_name":"Teamwork/public-components","owner":"Teamwork","description":"Public components to enhance your interaction with Teamwork","archived":false,"fork":false,"pushed_at":"2023-10-06T10:08:06.000Z","size":547,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-11-21T11:05:08.030Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/Teamwork.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2020-10-05T12:02:34.000Z","updated_at":"2023-10-06T10:07:58.000Z","dependencies_parsed_at":"2023-06-18T17:31:16.688Z","dependency_job_id":null,"html_url":"https://github.com/Teamwork/public-components","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Teamwork/public-components","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Teamwork%2Fpublic-components","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Teamwork%2Fpublic-components/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Teamwork%2Fpublic-components/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Teamwork%2Fpublic-components/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Teamwork","download_url":"https://codeload.github.com/Teamwork/public-components/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Teamwork%2Fpublic-components/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34283390,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-13T02:00:06.617Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-11T10:15:58.203Z","updated_at":"2026-06-13T11:32:34.963Z","avatar_url":"https://github.com/Teamwork.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# public-components\n\nPublic components to enhance your interaction with Teamwork\n\n## Login with Teamwork button\n\n### Usage\n\n*From the CDN*\n\n```html\n\u003c!-- You can also use https://cdn.teamwork.com/public/{tag}/login-button.js for a specific version --\u003e\n\u003cscript type=\"module\" src=\"https://cdn.teamwork.com/public/latest/login-button.js\"\u003e\u003c/script\u003e\n\u003cteamwork-login-button\n  redirectURI=\"https://www.myapp.com/\"\n  clientID=\"myClientID\"\n  iconOnly\n  state=\"appstate\"\n  color=\"slate\"\n  size=\"large\"\n  borders=\"rounded\"\n/\u003e\n```\n\n*Using NPM*\n\nFirst install it\n\n```\nnpm -i @teamwork/login-button --save\n```\n\nThen, in your `main.js` file: \n```js\nimport '@teamwork/login-button';\n```\n\nAnd somewhere in you template: \n\n```html\n\u003cteamwork-login-button\n  redirectURI=\"https://www.myapp.com/\"\n  clientID=\"myClientID\"\n  icon=\"false\"\n  state=\"appstate\"\n  color=\"slate\"\n  size=\"large\"\n  borders=\"default\"\n/\u003e\n```\n\n### Parameters\n\n| Name          \t| Default   \t| Description                                             \t| Allowed Values                                                       |\n|---------------\t|-----------\t|---------------------------------------------------------\t|------------------------------------------------------------------------------\t|\n| `clientID`    \t|           \t| **Required**. Client ID from the [Developer Portal](https://developer.teamwork.com/guides/how-to-authenticate-via-app-login-flow/)                 \t|                                                                              \t|\n| `redirectURI` \t|           \t| **Required**. Redirect URI for your Developer Portal app \t|                                                                              \t|\n| `state`       \t|           \t| Optional. Value will be passed to your redirect URI as a query parameter        \t|                                                                              \t|\n| `size`        \t| `medium`  \t| Size of the button                                      \t| `large` `medium` `small`                                                     \t|          \t|\n| `borders`     \t| `default` \t| Button border style                                      \t| `default` `rounded` `square`                                                 \t|          \t|\n| `color`       \t| `white`   \t| Button color theme                                        | `slate` `white` `indigo` `pink`                                              \t|          \t|\n| `iconOnly`    \t| `false`   \t| Show a compact, icon-only version of the button       \t| Attribute presence indicates `true` \t|          \t|\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteamwork%2Fpublic-components","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteamwork%2Fpublic-components","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteamwork%2Fpublic-components/lists"}