Skip to content

Installation

  1. Terminal window
    npm install @dxdns/feflow-core @dxdns/feflow-vue
  2. Wrap your application with the FeflowProvider to enable all Feflow components. This should be done at the layout level to ensure global access.

    Recommended: Place this in src/main.ts (React root element)

    • Directorysrc
      • main.ts
    import { createApp, h } from "vue"
    import App from "./App.vue"
    import { FeflowProvider } from "./lib"
    const app = createApp({
    render() {
    return h(FeflowProvider, null, {
    default: () => h(App)
    })
    }
    })
    app.mount("#app")
  3. <script setup lang="ts">
    import { Button } from "@dxdns/feflow-vue"
    </script>
    <template>
    <Button>
    Click me
    </Button>
    </template>