Skip to content

MotionStyles

Open .md
Live preview

Loading example…

MotionStyles is part of the Motion set, imported from @jcsoftdev/ui/motion.

import { MotionStyles } from "@jcsoftdev/ui/motion";
export const RevealOnMount: Story = {
render: () => (
<Replay>
{() => (
<Reveal>
<Card className="max-w-sm p-card">Welcome back. Three tasks are waiting for you.</Card>
</Reveal>
)}
</Replay>
),
};

Source of the Storybook story.

This component declares no props of its own.

packages/ui/src/motion/motion-styles.tsx