mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-20 21:01:29 +01:00
59 lines
1.1 KiB
TypeScript
59 lines
1.1 KiB
TypeScript
import { Meta, Story } from "@storybook/angular";
|
|
|
|
import { AvatarComponent } from "./avatar.component";
|
|
|
|
export default {
|
|
title: "Component Library/Avatar",
|
|
component: AvatarComponent,
|
|
args: {
|
|
id: undefined,
|
|
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 = {
|
|
size: "large",
|
|
};
|
|
|
|
export const Small = Template.bind({});
|
|
Small.args = {
|
|
size: "small",
|
|
};
|
|
|
|
export const LightBackground = Template.bind({});
|
|
LightBackground.args = {
|
|
color: "#d2ffcf",
|
|
};
|
|
|
|
export const Border = Template.bind({});
|
|
Border.args = {
|
|
border: true,
|
|
};
|
|
|
|
export const ColorByID = Template.bind({});
|
|
ColorByID.args = {
|
|
id: 236478,
|
|
};
|
|
|
|
export const ColorByText = Template.bind({});
|
|
ColorByText.args = {
|
|
text: "Jason Doe",
|
|
};
|