1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 17:53:39 +00:00

[SM-108] Refactor Reports - Add storybook stories (#3204)

This commit is contained in:
Oscar Hinton
2022-08-03 21:40:04 +02:00
committed by GitHub
parent 4398467368
commit 6b1652e34c
57 changed files with 512 additions and 223 deletions

View File

@@ -0,0 +1,27 @@
import { Meta, Story } from "@storybook/angular";
import { BitIconComponent } from "./icon.component";
export default {
title: "Component Library/Icon",
component: BitIconComponent,
args: {
icon: "reportExposedPasswords",
},
} as Meta;
const Template: Story<BitIconComponent> = (args: BitIconComponent) => ({
props: args,
template: `
<div class="tw-bg-primary-500 tw-p-5">
<bit-icon [icon]="icon" class="tw-text-primary-300"></bit-icon>
</div>
`,
});
export const ReportExposedPasswords = Template.bind({});
export const UnknownIcon = Template.bind({});
UnknownIcon.args = {
icon: "unknown",
};