<template> <div> <p>Hi, my name is {{ user }}</p> <label for="username">Username:</label> <input v-model="user" id="username" name="username" /> </div> </template> <script> export default { data: () => ({ user: 'Alice', }), } </script>
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter