// single file component <script setup> const props = defineProps({ foo: String }) </script> // or without "setup" in script tag export default { props: { title: String }, setup(props) { console.log(props.title) } }