Launch Week Day 2: Introducing Reports: An Extensible Reporting Framework for Socket Data.Learn More
Socket
Book a DemoSign in
Socket

@teamwork/login-button

Package Overview
Dependencies
Maintainers
124
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@teamwork/login-button

A simple web component

latest
npmnpm
Version
1.0.1
Version published
Maintainers
124
Created
Source

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

NameDefaultDescriptionAllowed Values
clientIDRequired. Client ID from the Developer Portal
redirectURIRequired. Redirect URI for your Developer Portal app
stateOptional. Value will be passed to your redirect URI as a query parameter
sizemediumSize of the buttonlarge medium small
bordersdefaultButton border styledefault rounded square
colorwhiteButton color themeslate white indigo pink
iconOnlyfalseShow a compact, icon-only version of the buttonAttribute presence indicates true

Keywords

web-components

FAQs

Package last updated on 06 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts