DocSpace-buildtools/web/ASC.Web.Components/src/components/social-button/README.md

30 lines
1.4 KiB
Markdown
Raw Normal View History

# 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"}/>
```
#### Properties
| Props | Type | Required | Values | Default | Description |
| ------------------ | -------- | :------: | --------------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| `label` | `string` | - | - | - | Button text |
| `iconName` | `string` | - | - | SocialButtonGoogleIcon | Icon of button |
| `isDisabled` | `bool` | - | - | false | Tells when the button should present a disabled state |
| `onClick` | `func` | - | - | - | What the button will trigger when clicked |