use-magic-props
v0.0.5
Published
[![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![Github Actions][github-actions-src]][github-actions-href] [![Codecov][codecov-src]][codecov-href]
Downloads
12
Readme
use-magic-props
Package description
Usage
Install package:
# npm
npm install use-magic-props
# pnpm
pnpm install use-magic-props<script setup>
import {useMagicProps} from "use-magic-props";
import {ref} from "vue";
const propsDef = ref([]);
useMagicProps(propsDef);
propsDef.value.push("newPropName");
// "newPropName" is now a prop!
</script>
💻 Development
- Clone this repository
- Enable Corepack using
corepack enable - Install dependencies using
pnpm install - Run interactive tests using
pnpm dev
License
Made with ❤️
Published under MIT License.
