headlessui-float-react
Advanced tools
{ | ||
"name": "headlessui-float-react", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Easy use Headless UI for React with Floating UI (Popper.js)", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -61,3 +61,3 @@ <h2 align="center">Headless UI Float React</h2> | ||
Note that `<Float>` must contain 2 child elements, the first being a reference element, either a Headless UI component or an HTML element, and the second being a floating element. | ||
Note that `<Float>` must contain 2 child elements, the first is the reference element, and the second is the floating element. It can be a Headless UI component or an HTML element. | ||
@@ -381,2 +381,3 @@ Then remove the `"absolute"`, `"right-0"` and other positioning class from `<Menu.Items>`, and add the `placement="bottom-end"` attribute: | ||
| ------------------------ | ------------------------------------------------- | -------------- | ------------------------------------------------------------------------------------- | | ||
| `show` | <code>Boolean</code> | — | Control the floating element is show or not. | | ||
| `placement` | <code>Placement</code> | `bottom-start` | Floating placement. | | ||
@@ -383,0 +384,0 @@ | `strategy` | <code>Strategy</code> | `absolute` | CSS `position` property of the floating element. | |
46462
0.41%424
0.24%