DocSpace-client/packages/components/social-button
2023-12-19 10:40:56 +03:00
..
index.tsx Merge branch 'develop' into feature/components-typescript 2023-12-19 10:40:56 +03:00
README.md
social-button.stories.tsx Components: rewrite to typescript 2023-11-27 09:58:19 +03:00
social-button.test.tsx Components: rewrite to typescript 2023-11-27 09:58:19 +03:00
styled-social-button.tsx Merge branch 'develop' into feature/components-typescript 2023-12-19 10:40:56 +03:00

SocialButton

Button is used for sign up with help social networks

Usage

import SocialButton from "@docspace/components/social-button";
<SocialButton
  iconName={"SocialButtonGoogleIcon"}
  label={"Sign up with Google"}
/>

Properties

Props Type Required Values Default Description
className string - - - Accepts class
iconName string - - SocialButtonGoogleIcon Icon of button
id string - - - Accepts id
isDisabled bool - - false Tells when the button should present a disabled state
label string - - - Button text
onClick func - - - What the button will trigger when clicked
style obj, array - - - Accepts css style