Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/teamwork/public-components

Public components to enhance your interaction with Teamwork
https://github.com/teamwork/public-components

Last synced: 3 days ago
JSON representation

Public components to enhance your interaction with Teamwork

Awesome Lists containing this project

README

        

# public-components

Public components to enhance your interaction with Teamwork

## Login with Teamwork button

### Usage

*From the CDN*

```html

```

*Using NPM*

First install it

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

Then, in your `main.js` file:
```js
import '@teamwork/login-button';
```

And somewhere in you template:

```html

```

### Parameters

| Name | Default | Description | Allowed Values |
|--------------- |----------- |--------------------------------------------------------- |------------------------------------------------------------------------------ |
| `clientID` | | **Required**. Client ID from the [Developer Portal](https://developer.teamwork.com/guides/how-to-authenticate-via-app-login-flow/) | |
| `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` | |