import { Meta, moduleMetadata, StoryObj } from "@storybook/angular"; import { formatArgsForCodeSnippet } from "../../../../.storybook/format-args-for-code-snippet"; import { SharedModule } from "../shared/shared.module"; import { SkeletonComponent } from "./skeleton.component"; export default { title: "Component Library/Skeleton/Skeleton", component: SkeletonComponent, decorators: [ moduleMetadata({ imports: [SharedModule], }), ], args: { edgeShape: "box", }, argTypes: { edgeShape: { control: { type: "radio" }, options: ["box", "circle"], }, }, } as Meta; type Story = StoryObj; export const BoxEdgeShape: Story = { render: (args) => ({ props: args, template: /*html*/ `
Examples of different size shapes with edgeShape={{ edgeShape }}
(args)} class="tw-size-32"> (args)} class="tw-w-40 tw-h-5">
`, }), args: { edgeShape: "box", }, }; export const CircleEdgeShape: Story = { ...BoxEdgeShape, args: { edgeShape: "circle", }, };