Skip to content

Popover

Should this text appear in a popover?

Example

Basic

Show Code
vue
<script lang="ts" setup>
import { RPopover, RSpace } from 'roughness'
</script>

<template>
  <RSpace vertical>
    <RPopover>
      <template #anchor>Tom is dreaming...</template>
      About giving Jerry as a gift to the girl he loves
    </RPopover>
    <RPopover trigger="click" side="bottom">
      <template #anchor>Click to wake Tom up</template>
      And let him find out that Jerry stole his cheese
    </RPopover>
  </RSpace>
</template>
Show Code
vue
<script lang="ts" setup>
import { RPopover, RSpace } from 'roughness'
</script>

<template>
  <RPopover side="bottom">
    <template #anchor>
      <RButton>Hamburger</RButton>
    </template>
    <RSpace vertical>
      <RButton>Nord</RButton>
      <RButton>Mitte</RButton>
      <RButton>Harburg</RButton>
    </RSpace>
  </RPopover>
</template>

Usage

Props

NameTypeDefault ValueDescription
align
graphicsOptions
open
side
trigger
...

See Card Props.

Events

NameTypeDescription
update:open

Slots

NameTypeDescription
anchor
...

See Card Slots.

Released under the ISC License.