bitwarden-estensione-browser/libs/components/src/avatar/avatar.stories.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

61 lines
1.1 KiB
TypeScript
Raw Normal View History

import { Meta, Story } from "@storybook/angular";
import { AvatarComponent } from "./avatar.component";
export default {
title: "Component Library/Avatar",
component: AvatarComponent,
args: {
text: "Walt Walterson",
size: "default",
},
parameters: {
design: {
type: "figma",
url: "https://www.figma.com/file/Zt3YSeb6E6lebAffrNLa0h/Tailwind-Component-Library?node-id=1881%3A16994",
},
},
} as Meta;
const Template: Story<AvatarComponent> = (args: AvatarComponent) => ({
props: args,
});
export const Default = Template.bind({});
Default.args = {
color: "#175ddc",
};
export const Large = Template.bind({});
Large.args = {
...Default.args,
size: "large",
};
export const Small = Template.bind({});
Small.args = {
...Default.args,
size: "small",
};
export const LightBackground = Template.bind({});
LightBackground.args = {
color: "#d2ffcf",
};
export const Border = Template.bind({});
Border.args = {
...Default.args,
border: true,
};
export const ColorByID = Template.bind({});
ColorByID.args = {
id: 236478,
};
export const ColorByText = Template.bind({});
ColorByText.args = {
text: "Jason Doe",
};