2020-10-16 13:16:01 +00:00
|
|
|
import React from "react";
|
2021-03-08 20:18:45 +00:00
|
|
|
import IconButton from "./";
|
2019-07-11 08:35:17 +00:00
|
|
|
|
2021-03-08 20:18:45 +00:00
|
|
|
export default {
|
|
|
|
title: "Components/IconButton",
|
|
|
|
component: IconButton,
|
|
|
|
parameters: {
|
|
|
|
docs: {
|
|
|
|
description: { component: "IconButton is used for a action on a page" },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
argTypes: {
|
|
|
|
color: { control: "color" },
|
|
|
|
clickColor: { control: "color" },
|
|
|
|
hoverColor: { control: "color" },
|
|
|
|
onClick: { action: "onClick" },
|
|
|
|
iconName: {
|
|
|
|
control: {
|
|
|
|
type: "select",
|
|
|
|
options: [
|
|
|
|
"static/images/search.react.svg",
|
|
|
|
"static/images/eye.react.svg",
|
|
|
|
"static/images/info.react.svg",
|
|
|
|
"static/images/mail.react.svg",
|
|
|
|
"static/images/catalog.pin.react.svg",
|
|
|
|
"static/images/cross.react.svg",
|
|
|
|
"static/images/media.mute.react.svg",
|
|
|
|
"static/images/nav.logo.react.svg",
|
|
|
|
"static/images/people.react.svg",
|
|
|
|
"static/images/question.react.svg",
|
|
|
|
"static/images/settings.react.svg",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
2019-07-11 08:35:17 +00:00
|
|
|
|
2021-03-08 20:18:45 +00:00
|
|
|
const Template = (args) => {
|
|
|
|
return <IconButton {...args} />;
|
|
|
|
};
|
|
|
|
|
|
|
|
export const Default = Template.bind({});
|
|
|
|
Default.args = {
|
|
|
|
color: "#d0d5da",
|
|
|
|
size: 25,
|
|
|
|
iconName: "static/images/search.react.svg",
|
|
|
|
isFill: true,
|
|
|
|
isDisabled: false,
|
|
|
|
};
|