mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
* Update Figma links updated existing Figma links to point to the new file and added Figma links to components missing them * Added last missing Figma links
46 lines
1.1 KiB
TypeScript
46 lines
1.1 KiB
TypeScript
import { Meta, StoryObj, moduleMetadata } from "@storybook/angular";
|
|
|
|
import { ButtonModule } from "../button";
|
|
|
|
import { NoItemsComponent } from "./no-items.component";
|
|
import { NoItemsModule } from "./no-items.module";
|
|
|
|
export default {
|
|
title: "Component Library/No Items",
|
|
component: NoItemsComponent,
|
|
decorators: [
|
|
moduleMetadata({
|
|
imports: [ButtonModule, NoItemsModule],
|
|
}),
|
|
],
|
|
parameters: {
|
|
design: {
|
|
type: "figma",
|
|
url: "https://www.figma.com/design/Zt3YSeb6E6lebAffrNLa0h/Tailwind-Component-Library?node-id=21665-25102&t=k6OTDDPZOTtypRqo-11",
|
|
},
|
|
},
|
|
} as Meta;
|
|
|
|
type Story = StoryObj<NoItemsComponent>;
|
|
|
|
export const Default: Story = {
|
|
render: (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>
|
|
`,
|
|
}),
|
|
};
|