@sylphx/lens-nuxt
v2.3.7
Published
Nuxt 3 integration for Lens API framework
Readme
@sylphx/lens-nuxt
Nuxt integration for the Lens API framework with SSR support.
Installation
bun add @sylphx/lens-nuxtUsage
<script setup>
import { useQuery, useMutation } from "@sylphx/lens-nuxt";
import { client } from "./client";
const { data, loading, error } = useQuery(() => client.user.get({ id: "1" }));
</script>
<template>
<div v-if="loading">Loading...</div>
<div v-else-if="error">Error: {{ error.message }}</div>
<div v-else>{{ data.name }}</div>
</template>License
MIT
Built with @sylphx/lens-client, @sylphx/lens-vue, and @sylphx/lens-server.
✨ Powered by Sylphx
