Skip to content

Commit a22a0ae

Browse files
authored
docs: update styling.mdx to reference Motion instead of Framer Motion (#9023)
- Change library name from "Framer Motion" to "Motion" - Update URL to https://motion.dev/
1 parent f1564dc commit a22a0ae

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

packages/react-aria-components/docs/styling.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ With this configured, all states for React Aria Components can be accessed with
268268

269269
## Animation
270270

271-
React Aria Components supports both [CSS transitions](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_transitions/Using_CSS_transitions) and [keyframe animations](https://developer.mozilla.org/en-US/docs/Web/CSS/@keyframes), and works with JavaScript animation libraries like [Framer Motion](https://www.framer.com/motion/).
271+
React Aria Components supports both [CSS transitions](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_transitions/Using_CSS_transitions) and [keyframe animations](https://developer.mozilla.org/en-US/docs/Web/CSS/@keyframes), and works with JavaScript animation libraries like [Motion](https://motion.dev/).
272272

273273
### CSS transitions
274274

@@ -348,20 +348,20 @@ If you are using Tailwind CSS, we recommend using the [tailwindcss-animate](http
348348
</Popover>
349349
```
350350

351-
### Framer Motion
351+
### Motion
352352

353-
[Framer Motion](https://www.framer.com/motion/) and other JavaScript animation libraries can also be used with React Aria Components. Use the [motion](https://www.framer.com/motion/component/#custom-components) function to create a wrapper component that adds support for Framer Motion's animation props.
353+
[Motion](https://motion.dev) and other JavaScript animation libraries can also be used with React Aria Components. Use the [motion](https://motion.dev/docs/react-motion-component#custom-components) function to create a wrapper component that adds support for Motion's animation props.
354354

355355
```tsx
356356
import {Modal, ModalOverlay} from 'react-aria-components';
357357
import {motion} from 'motion/react';
358358

359-
// Create Framer Motion wrappers.
359+
// Create a Motion wrappers.
360360
const MotionModal = motion(Modal);
361361
const MotionModalOverlay = motion(ModalOverlay);
362362
```
363363

364-
This enables using props like [animate](https://www.framer.com/motion/animation/) with React Aria Components.
364+
This enables using props like [animate](https://motion.dev/docs/react-animation) with React Aria Components.
365365

366366
```tsx
367367
<MotionModal
@@ -371,7 +371,7 @@ This enables using props like [animate](https://www.framer.com/motion/animation/
371371
</MotionModal>
372372
```
373373

374-
Overlay exit animations can be implemented using the `isExiting` prop, which keeps the element in the DOM until an animation is complete. Framer Motion's [variants](https://www.framer.com/motion/animation/#variants) are a good way to setup named animation states.
374+
Overlay exit animations can be implemented using the `isExiting` prop, which keeps the element in the DOM until an animation is complete. Motion's [variants](https://motion.dev/docs/react-animation#variants) are a good way to setup named animation states.
375375

376376
```tsx
377377
type AnimationState = 'unmounted' | 'hidden' | 'visible';
@@ -418,9 +418,9 @@ function Example() {
418418
}
419419
```
420420

421-
**Note**: Framer Motion's `AnimatePresence` component may not work with React Aria overlays in all cases, so the example shown above is the recommended approach for exit animations.
421+
**Note**: Motion's `AnimatePresence` component may not work with React Aria overlays in all cases, so the example shown above is the recommended approach for exit animations.
422422

423-
The [AnimatePresence](https://www.framer.com/motion/animate-presence/) component allows you to animate when items are added or removed in collection components. Use `array.map` to create children, and make sure each child has a unique `key` in addition to an `id` to ensure Framer Motion can track it.
423+
The [AnimatePresence](https://motion.dev/docs/react-animate-presence) component allows you to animate when items are added or removed in collection components. Use `array.map` to create children, and make sure each child has a unique `key` in addition to an `id` to ensure Motion can track it.
424424

425425
```tsx
426426
import {GridList, GridListItem} from 'react-aria-components';

0 commit comments

Comments
 (0)