1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

Component Library scaffolding (#625)

This commit is contained in:
Oscar Hinton
2022-03-08 11:50:34 +01:00
committed by GitHub
parent fa3a95fed0
commit 67a4fc8591
45 changed files with 62205 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
import { Meta, Story } from "@storybook/angular";
import { BadgeComponent } from "./badge.component";
export default {
title: "Jslib/Badge",
component: BadgeComponent,
args: {
type: "primary",
},
} as Meta;
const Template: Story<BadgeComponent> = (args: BadgeComponent) => ({
props: args,
template: `
<span class="tw-text-main">Test </span><bit-badge [type]="type">Content</bit-badge>
`,
});
export const Primary = Template.bind({});
Primary.args = {};
export const Secondary = Template.bind({});
Secondary.args = {
type: "secondary",
};
export const Success = Template.bind({});
Success.args = {
type: "success",
};
export const Danger = Template.bind({});
Danger.args = {
type: "danger",
};
export const Warning = Template.bind({});
Warning.args = {
type: "warning",
};
export const Info = Template.bind({});
Info.args = {
type: "info",
};