Skip to content

Commit 20ddb3e

Browse files
authored
docs(React): improve documentation for Menu transitions (#7)
* Improve documentation for Menu transitions * Update README.md
1 parent b051f13 commit 20ddb3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@headlessui-react/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ function MyDropdown() {
530530

531531
### Transitions
532532

533-
To animate the opening/closing of the menu panel, use jsx's built-in `transition` component. All you need to do is wrap your `Menu.Items` instance in a `<transition>` element and the transition will be applied automatically.
533+
To animate the opening/closing of the menu panel, use the provided `Transition` component. All you need to do is mark your `Menu.Items` as `static`, wrap it in a `<Transition>`, and the transition will be applied automatically.
534534

535535
```jsx
536536
import { Menu, Transition } from '@headlessui/react'

0 commit comments

Comments
 (0)