DocSpace-client/packages/components/social-button/social-button.stories.js
2023-05-31 20:01:38 +05:00

46 lines
1.1 KiB
JavaScript

import React from "react";
import SocialButton from "./";
import ShareGoogleReactSvgUrl from "PUBLIC_DIR/images/share.google.react.svg?url";
import ShareLinkedinReactSvgUrl from "PUBLIC_DIR/images/share.linkedin.react.svg?url";
export default {
title: "Components/SocialButtons",
component: SocialButton,
parameters: {
docs: {
description: {
component: "Button is used for sign up with help social networks",
},
},
},
argTypes: {
onClick: { action: "onClick" },
iconName: {
control: {
type: "select",
},
options: [
ShareGoogleReactSvgUrl,
//"ShareFacebookIcon",
//"ShareTwitterIcon",
ShareLinkedinReactSvgUrl,
],
},
},
};
const Template = ({ onClick, ...args }) => {
return (
<div style={{ width: "200px", margin: "7px" }}>
<SocialButton {...args} onClick={() => onClick("clicked")} />
</div>
);
};
export const Default = Template.bind({});
Default.args = {
label: "Base SocialButton",
iconName: ShareGoogleReactSvgUrl,
isDisabled: false,
};