DocSpace-buildtools/packages/asc-web-components/avatar/avatar.stories.js

31 lines
560 B
JavaScript
Raw Normal View History

import React from "react";
2021-03-01 21:33:44 +00:00
import Avatar from "./";
const editAction = () => console.log("Edit action");
export default {
title: "Components/Avatar",
component: Avatar,
argTypes: {
editAction: { action: "editAction" },
},
parameters: {
docs: {
description: {
component: "Used to display an avatar or brand.",
},
},
},
2021-03-01 21:33:44 +00:00
};
const Template = (args) => <Avatar {...args} />;
export const Default = Template.bind({});
Default.args = {
size: "max",
role: "admin",
source: "",
userName: "",
editing: false,
};