Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Popover manual mode with no click nor hover #2925

Open
Akryum opened this issue Dec 17, 2024 · 4 comments
Open

Popover manual mode with no click nor hover #2925

Akryum opened this issue Dec 17, 2024 · 4 comments
Labels
enhancement New feature or request v3 #1289

Comments

@Akryum
Copy link
Contributor

Akryum commented Dec 17, 2024

For what version of Nuxt UI are you suggesting this?

v3.0.0-alpha.x

Description

AFAIK there is currently no documented way to prevent the popover from opening automatically through click or hover.

Example API:

<UPopover mode="manual">
  <UButton>I don't do anything</UButton
</UPopover>

Additional context

Related to #721 (but not fixed)

@Akryum Akryum added enhancement New feature or request triage labels Dec 17, 2024
Copy link
Member

Not sure to understand what you're trying to achieve. Why put a Button in the default slot if you don't want it to be the trigger?

How is #721 not fixed? 🤔 In v3 you can control the open state using v-model:open: https://ui3.nuxt.dev/components/popover#control-open-state

@benjamincanac benjamincanac added v3 #1289 and removed triage labels Dec 18, 2024
@Akryum
Copy link
Contributor Author

Akryum commented Dec 20, 2024

The main use case is to correctly position the popover relative to an element (it might not be a button btw). #721 is not fixed since we can't disable the click/hover trigger.

Here is how it looks like in floating-vue: https://floating-vue.starpad.dev/guide/component#triggers

Copy link
Member

I'm not sure it's possible at the moment with Reka UI, maybe with an anchor? 🤔
https://reka-ui.com/docs/components/popover#with-custom-anchor

@Akryum
Copy link
Contributor Author

Akryum commented Dec 21, 2024

Yes it's probably with an anchor instead of a trigger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request v3 #1289
Projects
None yet
Development

No branches or pull requests

2 participants