36 lines
834 B
TypeScript
36 lines
834 B
TypeScript
|
import { Meta, moduleMetadata, Story } from "@storybook/angular";
|
||
|
|
||
|
import { ButtonModule } from "../button";
|
||
|
|
||
|
import { NoItemsModule } from "./no-items.module";
|
||
|
|
||
|
export default {
|
||
|
title: "Component Library/No Items",
|
||
|
decorators: [
|
||
|
moduleMetadata({
|
||
|
imports: [ButtonModule, NoItemsModule],
|
||
|
}),
|
||
|
],
|
||
|
} as Meta;
|
||
|
|
||
|
const Template: Story = (args) => ({
|
||
|
props: args,
|
||
|
template: `
|
||
|
<bit-no-items class="tw-text-main">
|
||
|
<ng-container slot="title">No items found</ng-container>
|
||
|
<ng-container slot="description">Your description here.</ng-container>
|
||
|
<button
|
||
|
slot="button"
|
||
|
type="button"
|
||
|
bitButton
|
||
|
buttonType="secondary"
|
||
|
>
|
||
|
<i class="bwi bwi-plus" aria-hidden="true"></i>
|
||
|
New item
|
||
|
</button>
|
||
|
</bit-no-items>
|
||
|
`,
|
||
|
});
|
||
|
|
||
|
export const Default = Template.bind({});
|