2019-11-15 10:22:03 +00:00
|
|
|
# Buttons: SocialButton
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
```js
|
|
|
|
import { SocialButton } from 'asc-web-components';
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
#### Description
|
|
|
|
|
|
|
|
Button is used for sign up with help social networks.
|
|
|
|
|
|
|
|
#### Usage
|
|
|
|
|
|
|
|
```js
|
2019-11-15 10:51:07 +00:00
|
|
|
<SocialButton iconName={"SocialButtonGoogleIcon"} label={"Sign up with Google"}/>
|
2019-11-15 10:22:03 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Properties
|
|
|
|
|
|
|
|
| Props | Type | Required | Values | Default | Description |
|
|
|
|
| ------------------ | -------- | :------: | --------------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
|
|
| `label` | `string` | - | - | - | Button text |
|
|
|
|
| `iconName` | `string` | - | - | SocialButtonGoogleIcon | Icon of button |
|
2019-11-19 13:29:28 +00:00
|
|
|
| `isDisabled` | `bool` | - | - | false | Tells when the button should present a disabled state |
|
|
|
|
| `onClick` | `func` | - | - | - | What the button will trigger when clicked |
|
2019-11-15 10:22:03 +00:00
|
|
|
|
|
|
|
|