Cristiano Magro
2025-01-05 de01bc78e9f6713d339566c4c87d5f888c16e3b8
09 - deeper into components/cmp-adv-01-starting-setup/src/components/UserInfo.vue
@@ -1,11 +1,13 @@
<template>
  <section>
    <base-card>
      <header>
      <template v-slot:header>
        <h3>{{ fullName }}</h3>
        <base-badge :type="role" :caption="role.toUpperCase()"></base-badge>
      </header>
      <p>{{ infoText }}</p>
      </template>
      <template v-slot:default>
        <p>{{ infoText }}</p>
      </template>
    </base-card>
  </section>
</template>
@@ -15,12 +17,3 @@
  props: ['fullName', 'infoText', 'role'],
};
</script>
<style scoped>
section header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
</style>