From 3eea535266216b334f6ed6eb17b13c7887a22b1f Mon Sep 17 00:00:00 2001 From: Maxwell Barvian Date: Sat, 23 Nov 2024 08:18:54 -0800 Subject: [PATCH] Use Note from Motion example --- site/src/pages/[...framework]/examples/index.mdx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/site/src/pages/[...framework]/examples/index.mdx b/site/src/pages/[...framework]/examples/index.mdx index c10398f3..1ece77d5 100644 --- a/site/src/pages/[...framework]/examples/index.mdx +++ b/site/src/pages/[...framework]/examples/index.mdx @@ -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} @@ -41,7 +42,9 @@ export const components = {a: Link, pre: Pre} - **Note:** whenever `NumberFlow` is used within a layout animation it must be (or be in) a + + 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. +