index.stories.tsx 572 B

1234567891011121314151617181920212223242526272829
  1. import type { Meta, StoryObj } from "@storybook/react";
  2. import { Skeleton as SkeletonComponent } from "./index.js";
  3. const meta = {
  4. component: SkeletonComponent,
  5. argTypes: {
  6. label: {
  7. control: "text",
  8. table: {
  9. category: "Skeleton",
  10. },
  11. },
  12. width: {
  13. control: "number",
  14. table: {
  15. category: "Skeleton",
  16. },
  17. },
  18. },
  19. } satisfies Meta<typeof SkeletonComponent>;
  20. export default meta;
  21. export const Skeleton = {
  22. args: {
  23. label: "Loading",
  24. width: 20,
  25. },
  26. } satisfies StoryObj<typeof SkeletonComponent>;