export default props vue code example Example: vue js default props props: { year: { default: 2016, type: Number } }