@teamwork/login-button

1.0.1 • Public • Published

public-components

Public components to enhance your interaction with Teamwork

Login with Teamwork button

Usage

From the CDN

<!-- You can also use https://cdn.teamwork.com/public/{tag}/login-button.js for a specific version -->
<script type="module" src="https://cdn.teamwork.com/public/latest/login-button.js"></script>
<teamwork-login-button
  redirectURI="https://www.myapp.com/"
  clientID="myClientID"
  iconOnly
  state="appstate"
  color="slate"
  size="large"
  borders="rounded"
/>

Using NPM

First install it

npm -i @teamwork/login-button --save

Then, in your main.js file:

import '@teamwork/login-button';

And somewhere in you template:

<teamwork-login-button
  redirectURI="https://www.myapp.com/"
  clientID="myClientID"
  icon="false"
  state="appstate"
  color="slate"
  size="large"
  borders="default"
/>

Parameters

Name Default Description Allowed Values
clientID Required. Client ID from the Developer Portal
redirectURI Required. Redirect URI for your Developer Portal app
state Optional. Value will be passed to your redirect URI as a query parameter
size medium Size of the button large medium small
borders default Button border style default rounded square
color white Button color theme slate white indigo pink
iconOnly false Show a compact, icon-only version of the button Attribute presence indicates true

Package Sidebar

Install

npm i @teamwork/login-button

Weekly Downloads

19

Version

1.0.1

License

MIT

Unpacked Size

44.6 kB

Total Files

13

Last publish

Collaborators

  • camilasantos85
  • irltopper
  • lisa-kavs
  • loaymoolb
  • furqanali
  • mari_ka
  • mattgeek
  • nern-tw
  • joseluis-tw
  • ivnosing
  • karenhodgins
  • ryanoc8
  • laurenoc125
  • karolina.truszkowska
  • alifletch
  • imrafalman
  • encarnaamoros
  • marcos.gutierrez
  • tonisanta
  • gmc123
  • rodynnz
  • tanyairwinblack
  • pmgriffin
  • victoriasloan
  • a1d0
  • alvarotw
  • seanogdev
  • conor.quin
  • manucuestatw
  • chrisrollins65
  • andrssl
  • kclaur
  • yonson2
  • xlerida
  • pktw
  • decob
  • pinkkis
  • ilserodriguez
  • k823
  • crssn
  • chrisjtwomey
  • simonbb
  • vg500
  • ma-jerez
  • ivayloovcharov
  • ismaelpenalver
  • kadenn
  • nathanmcclelland
  • fatihunlu
  • lmcaree
  • mjteamwork
  • matteobandiera
  • stdiopt
  • roryok
  • duncan1a
  • garycremen
  • dommurphytw
  • bmckay397
  • sineadcullinane
  • miccc
  • shanepm
  • sheyla.marhuenda
  • techfort
  • rafaeljusto
  • 1001hz
  • 4ver
  • emmetcampion
  • bakaat
  • aetheon
  • teamwork-dev
  • cianwoods
  • kersh
  • jamesdraper5
  • aodhom
  • ripexz
  • morethanaprogrammer
  • jatochnietdan
  • samternent
  • pshad0w
  • dmackey
  • yawlhead91
  • gkubisa
  • jessicaaferraz
  • arielpiecha-teamwork
  • cesartw
  • jamesmccullough
  • garymcbay
  • ekm1908
  • adamcarroll-teamwork
  • hmarron
  • bradderz
  • patrickaodh
  • vercadium
  • steve.walsh
  • victoriasloan1995
  • guillermofgorostidi
  • lucasleandro1204
  • atilkan
  • ktopouzi
  • aidancasey
  • valerio-farriciello
  • netoramalhotw
  • ap7t
  • luketynan
  • marciliotw
  • alekaei
  • twsanjay
  • chrismccormack
  • jaspiertw