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 placement #783

Closed
dominicmeyer opened this issue Oct 6, 2023 · 1 comment
Closed

Popover placement #783

dominicmeyer opened this issue Oct 6, 2023 · 1 comment
Labels
question Further information is requested

Comments

@dominicmeyer
Copy link

Description

Hi I have the following setup for a popover:

<UPopover>
  <UButton icon="i-heroicons-user" />
  
  <template #panel>
    <UButtonGroup>
      <UButton label="login" />
    </UButtonGroup>
  </template>
</UPopover>

Everthing works as it should, but the Popover gets placed in the middle of the Button.
How can I control the placement of the popover, to set it either beneath or left of the Button.
Maybe I have to use the popper prop, but from the Docs I didn't understand how to use it.

@dominicmeyer dominicmeyer added the question Further information is requested label Oct 6, 2023
Copy link
Member

You can use <UPopover :popper="{ placement: 'left' }" /> to control this. The popper object should be documented but we have the #644 bug open for reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants