Skip to Content
Vue Flow v2 is here and joins xyflow! Read more here →

<Panel />

Source on GitHub 

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.

NameTypeDefault
positionPanelPosition

The position of the panel.

"top-left"
labelstring | null

accessible label for the panel container, applied as aria-label (used by <Controls>)