mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 01:33:33 +00:00
Move to libs
This commit is contained in:
38
libs/components/src/banner/banner.stories.ts
Normal file
38
libs/components/src/banner/banner.stories.ts
Normal file
@@ -0,0 +1,38 @@
|
||||
import { Meta, Story } from "@storybook/angular";
|
||||
|
||||
import { BannerComponent } from "./banner.component";
|
||||
|
||||
export default {
|
||||
title: "Jslib/Banner",
|
||||
component: BannerComponent,
|
||||
args: {
|
||||
bannerType: "warning",
|
||||
},
|
||||
} as Meta;
|
||||
|
||||
const Template: Story<BannerComponent> = (args: BannerComponent) => ({
|
||||
props: args,
|
||||
template: `
|
||||
<bit-banner [bannerType]="bannerType">Content Really Long Text Lorem Ipsum Ipsum Ipsum <button>Button</button></bit-banner>
|
||||
`,
|
||||
});
|
||||
|
||||
export const Premium = Template.bind({});
|
||||
Premium.args = {
|
||||
bannerType: "premium",
|
||||
};
|
||||
|
||||
export const Info = Template.bind({});
|
||||
Info.args = {
|
||||
bannerType: "info",
|
||||
};
|
||||
|
||||
export const Warning = Template.bind({});
|
||||
Warning.args = {
|
||||
bannerType: "warning",
|
||||
};
|
||||
|
||||
export const Danger = Template.bind({});
|
||||
Danger.args = {
|
||||
bannerType: "danger",
|
||||
};
|
||||
Reference in New Issue
Block a user