vue-types

Prop types utility for Vue
9,212,631 583
Install
npm install vue-types
Latest Version:7.0.1
Vue:3
Older releases:1 · 2
License:MIT
Last Updated:Oct 23, 2026
Links: GitHub  ·  npm
Maintainer: dwightjack

vue-types

Prop type definitions for Vue.js.

NPM package version Code coverage

Note: This document is for VueTypes 6. If you are looking for an older versions, refer to the documentation for v2~v5

Introduction

vue-types is a collection of configurable prop type definitions for Vue.js components, inspired by React's prop-types.

Try it now! or learn more at the official documentation site.

Run examples

  1. Install dependencies: pnpm install
  2. Run script: pnpm run examples:dev
  3. Wait for the server and bundler to start-up

Run docs on localhost

  1. Install dependencies: pnpm install
  2. Run script: pnpm run docs:dev

Contributing

  1. Clone this repository
  2. Install dependencies: pnpm install
  3. Make your changes
  4. Update or add tests in packages/core/__tests__/
  5. Verify that everything works: pnpm -r run lint && pnpm -r test
  6. Submit a Pull Request

License

MIT

Copyright (c) 2016 - present Marco Solazzi

Related Packages

@znck/prop-types

Fluent prop validation for Vue

20,852
vue-prop-validation-helper

A Vue validator lib that provide utilities to help you validate your properties

7,014 8
vue-route-props

Automatically bind vue-router query to vm, APIs are mostly same as the Vue props...

723 1
vue-router-parse-props

Parse params and query in vue-router to component props.

2,357 2
vue-coerce-props

Coerce props to custom values

704,108 72

Version History

Version Released Vue License
7.0.1 ^3.0.0 MIT
7.0.0 ^3.0.0 MIT
6.0.0 ^3.0.0 MIT
5.1.3 ^2.0.0 || ^3.0.0 MIT
5.1.2 ^2.0.0 || ^3.0.0 MIT
Pre-releases (38)
Version Released Vue License
5.0.3-next.0 ^2.0.0 || ^3.0.0 MIT
5.0.0-beta.2 ^2.0.0 || ^3.0.0 MIT
5.0.0-beta.1 ^2.0.0 || ^3.0.0 MIT
4.2.0-rc.1 ^2.0.0 || ^3.0.0 MIT
4.1.1-rc.1 ^2.0.0 || ^3.0.0 MIT