index.stories.tsx 568 B

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