Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

836 B
Raw Blame
import { FadeIn } from "./FadeIn";
import type { Meta, StoryObj } from "@storybook/nextjs";

const meta: Meta<typeof FadeIn> = {
  title: "Atoms/FadeIn",
  tags: ["autodocs"],
  component: FadeIn,
  parameters: {
    layout: "centered",
    docs: {
      description: {
        component:
          "A wrapper that fades in its children with a subtle upward slide animation using framer-motion.",
      },
    },
  },
};

export default meta;
type Story = StoryObj<typeof meta>;

export const Default: Story = {
  render: () => (
    <FadeIn>
      <div className="rounded-lg border border-zinc-200 bg-white p-8 text-center">
        <p className="text-lg font-medium">This content fades in</p>
        <p className="text-sm text-zinc-500">
          With a subtle upward slide animation
        </p>
      </div>
    </FadeIn>
  ),
};