Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

vue 3 define props script setup

interface Props {
  msg?: string
}

const props = withDefaults(defineProps<Props>(), {
  msg: 'hello'
})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #vue #define #props #script #setup
ADD COMMENT
Topic
Name
2+3 =