@all1ndev/vue-local-scope

An implementation of posva/vue-local-scope for Vue 3 and TypeScript support
18,835 6
Install
npm install @all1ndev/vue-local-scope
Latest Version:0.3.2
Vue:3
License:MIT
Last Updated:Jan 27, 2026
Links: GitHub  ·  npm
Maintainer: directive4837

@all1ndev/vue-local-scope

An implementation of posva/vue-local-scope for Vue 3 and TypeScript support

Allows to reuse an expression that is repeating multiple times in a Vue Template

<script setup lang="ts">
import { LocalScope } from "@all1ndev/vue-local-scope";
</script>

<template>
	<LocalScope
		lorem="Lorem Ipsum Dolor Sit Amet"
		lorem-ipsum="dolor"
		#default="props"
	>
		<ol>
			<li>{{ props.lorem }}</li>
			<li>{{ props.loremIpsum }}</li>
		</ol>
	</LocalScope>
</template>

With Full Type Completion

[!NOTE]
Can be used in JSX but types are not infered

Related Packages

@vue/composition-api

Provide logic composition capabilities for Vue.

7,353,877 4,179
vue-composition-global-subscription

A Component to handle global events and data

345
@prefecthq/vue-compositions

A collection of reusable vue compositions.

86,897 7
@lehoczky/vue-keycloak

Keycloak plugin for Vue3 and Composition API

4,884

Version History

Version Released License
0.3.2 MIT
0.3.1 MIT