Popover

Floating panel that emanates from an action.

PropTypeDescription
openbooleanManually set current open state of popover
floatingUIobjectFloating UI options for positioning
zIndex number Set the z-index for this popover (default: 500)
idstringHTML id attribute
<script lang="ts">
import Button from '../components/button.svelte';
import Popover from '../components/popover.svelte';
</script>

<Popover>
  <Button slot="control">Open menu</Button>
  <div>I’m open!</div>
</Popover>