Comments (3)
Hey! Thanks for pointing this out. We've been super busy hacking away on Headless UI v2 and Catalyst and although we'd prepped the necessary changes for the stable release of v2.0 the update fell through the cracks when we published Headless UI v2 this morning.
I've pushed the updates to the documentation, the downloaded zip file, and the template details page on Tailwind UI. You can download the updated version on Tailwind UI now 👍
from headlessui.
You are trying to access to
on this type specifically:
export type AnchorProps = false | (`${Placement}` | `${Placement} ${Align}`) | Partial<BaseAnchorProps & {
/**
* The `to` value defines which side of the trigger the panel should be placed on and its
* alignment.
*/
to: `${Placement}` | `${Placement} ${Align}`;
}>;
from headlessui.
One solution is to use this instead:
export function DropdownMenu({
anchor = 'bottom',
...props
}: { anchor?: Exclude<NonNullable<HeadlessMenuItemsProps['anchor']>, false | string>["to"] } & Omit<HeadlessMenuItemsProps, 'anchor'>) {
from headlessui.
Related Issues (20)
- [DOCS]: `DialogPanel` and `DialogTitle` tagged as deprecated HOT 2
- Combobox: after searching and clicking on a list item, the input value is not updated HOT 2
- Combobox v2 issue with dynamic fetched options in nextjs HOT 1
- Issue after upgrading healdessui to latest version in a react17 project: Uncaught TypeError: (0 , import_react45.useId HOT 1
- Clicking on a Switch inside of a PopoverPanel closes the Popover HOT 1
- Combobox scroll jitter when scrolling long list after an option is selected
- Combobox with virtual scrolling not showing up HOT 1
- Dropdown components are missing prop "modal" HOT 2
- Opening Healdess UI Dialog (Modal) via another Dialog (Modal) closes the previous Dialog (Modal) automatically? HOT 2
- [DOCS]: ListboxOptions change from v1.7 to v2.0 is missing active HOT 1
- [DOCS]: Fieldset/Select example styling is off (Chrome) HOT 1
- Menu items don't get focus when menu is static HOT 3
- Combobox's `onChange` also fires on no change HOT 3
- [DOCS]: Help migrating to v2 HOT 2
- Weird tailwind class name injection in V2
- Combobox overrides HTML styles with overflow:hidden when menu opened HOT 6
- V2 Bug - Disabled checkbox selected when navigating by tab HOT 1
- Checkbox transition stops working if the checked state is managed externally HOT 1
- [DOCS]: Listbox states that "Enter" on button will open the listbox HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from headlessui.