<Panel />
The <Panel /> component helps you position content above the viewport. It is used
internally by the <MiniMap /> and
<Controls /> components.
<script setup lang="ts">
import { shallowRef } from 'vue';
import { Panel, VueFlow } from '@xyflow/vue';
const nodes = shallowRef([]);
const edges = shallowRef([]);
</script>
<template>
<VueFlow v-model:nodes="nodes" v-model:edges="edges">
<Panel position="top-left">top-left</Panel>
<Panel position="top-right">top-right</Panel>
<Panel position="bottom-left">bottom-left</Panel>
<Panel position="bottom-right">bottom-right</Panel>
</VueFlow>
</template>Props
The type for props of <Panel /> component is exported as PanelProps.
| Name | Type | Default |
|---|---|---|
position | PanelPositionThe position of the panel. | "top-left" |
label | string | nullaccessible label for the panel container, applied as |