You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP โ†’
Socket
Book a DemoInstallSign in
Socket

@braks/vue-flow

Package Overview
Dependencies
Maintainers
1
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@braks/vue-flow

[![vue flow](./src/assets/vue-flow.gif)](https://vue-flow.vercel.app/) ![top-language](https://img.shields.io/github/languages/top/bcakmakoglu/vue-flow) [![dependencies Status](https://status.david-dm.org/gh/bcakmakoglu/vue-flow.svg)](https://david-dm.org

0.0.10
Source
npmnpm
Version published
Weekly downloads
861
-4.86%
Maintainers
1
Weekly downloads
ย 
Created
Source

Vue Flow ๐ŸŒŠ

vue flow top-language dependencies Status devDependencies Status vulnerabilities GitHub code size in bytes GitHub last commit

Vue Flow: A highly customizable Vue3 Flowchart component.

With Vue Flow you can build your own, customized node-based applications like static diagrams or even more complex and interactive editors!

You can find a detailed explanation on how to get started in the documentation or check the examples.

If you want to see how it's used with Nuxt3, check out the docs repo!

โญ๏ธ Features

  • ๐Ÿ‘ถ Easy to use: Seamless zooming & panning behaviour and single and multi-selections of elements

  • ๐ŸŽจ Customizable: Different and edge types and support for custom nodes with multiple handles and custom edges

  • ๐Ÿš€ Fast rendering: Only nodes that have changed are re-rendered and only those that are in the viewport are displayed (optionally)

  • ๐Ÿงฒ Utils: Snap-to-grid and graph helper functions

  • ๐Ÿ“ฆ Additional Components:

    • ๐Ÿ–ผ Background

    • ๐Ÿงญ Minimap

    • ๐Ÿ•น Controls

  • ๐Ÿฆพ Fully written in TypeScript

๐Ÿ›  Setup

$ npm i @braks/vue-flow
# or
$ yarn add @braks/vue-flow

๐ŸŽฎ Quickstart

<template>
  <Flow :elements="elements"></Flow>
</template>
<script lang="ts" setup>
import { Flow, Elements } from '@braks/vue-flow'

const elements = ref<Elements>([
  {
    id: '1',
    data: {
      label: 'This is a <strong>default node</strong>',
    },
    position: { x: 100, y: 100 },
  },
])
</script>

โ–ธ Vue 2

This library doesn't work with Vue2.

๐Ÿงช Development

# start (dev)
$ yarn dev

# build dist
$ yarn build

๐Ÿ’ Credit

Thanks to webkid for creating React Flow! Without their work this would've been impossible for me.

FAQs

Package last updated on 16 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts