<script setup>
import { ref } from 'vue'

defineProps({
  msg: String,
})

const count = ref(0)
</script>

<template>
  <h1 class="text-2xl font-semibold">{{ msg }}</h1>

  <div class="mt-4 border border-border rounded-lg p-4 bg-panel">
    <button class="border border-border bg-panel-2 text-text px-3 py-2 rounded-lg text-sm font-semibold" type="button" @click="count++">count is {{ count }}</button>
    <p class="mt-2 text-sm text-muted">
      Edit
      <code>components/HelloWorld.vue</code> to test HMR
    </p>
  </div>

  <p class="mt-4 text-sm">
    Check out
    <a class="text-accent underline" href="https://vuejs.org/guide/quick-start.html#local" target="_blank"
      >create-vue</a
    >, the official Vue + Vite starter
  </p>
  <p class="mt-2 text-sm">
    Learn more about IDE Support for Vue in the
    <a
      class="text-accent underline"
      href="https://vuejs.org/guide/scaling-up/tooling.html#ide-support"
      target="_blank"
      >Vue Docs Scaling up Guide</a
    >.
  </p>
  <p class="mt-2 text-sm text-muted">Click on the Vite and Vue logos to learn more</p>
</template>
