Skip to content

Repository files navigation

use-magic-props

npm version npm downloads Github Actions Codecov

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.

About

Define vue props at any time!

Resources

Code of conduct

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

Generated from fimion/pkg-template