Skip to content

Commit

Permalink
Use Note from Motion example
Browse files Browse the repository at this point in the history
  • Loading branch information
barvian committed Nov 23, 2024
1 parent 47b3aa0 commit 3eea535
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion site/src/pages/[...framework]/examples/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import Heading from '@/components/Heading.astro';
import Match from '@/components/Match.astro';
import Code from '@/components/Code.astro';
import Link from '@/components/Link.astro'
import Note from '@/components/Note.astro'
import Pre from '@/components/Pre.astro'
import Motion from './_Motion/index.astro'
export const components = {a: Link, pre: Pre}
Expand Down Expand Up @@ -41,7 +42,9 @@ export const components = {a: Link, pre: Pre}

<Motion />

**Note:** whenever `NumberFlow` is used within a layout animation it must be (or be in) a
<Note>
When `NumberFlow` is used within a layout animation it should be (or be in) a
[`motion` component](https://motion.dev/docs/react-motion-component) with the
`layout layoutRoot` props.
</Note>
</Match>

0 comments on commit 3eea535

Please sign in to comment.