From eb387dbd90a2a891ee5ee4458e32cccb460fd9b1 Mon Sep 17 00:00:00 2001
From: Cristiano Magro <cristiano.magro@vola.it>
Date: Mon, 06 Jan 2025 18:15:48 +0100
Subject: [PATCH] first components e props

---
 09 - deeper into components/cmp-adv-03-introducing-slots/src/components/UserInfo.vue |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/09 - deeper into components/cmp-adv-03-introducing-slots/src/components/UserInfo.vue b/09 - deeper into components/cmp-adv-03-introducing-slots/src/components/UserInfo.vue
new file mode 100644
index 0000000..6f0bd6b
--- /dev/null
+++ b/09 - deeper into components/cmp-adv-03-introducing-slots/src/components/UserInfo.vue
@@ -0,0 +1,25 @@
+<template>
+  <section>
+    <base-card>
+      <header>
+        <h3>{{ fullName }}</h3>
+        <base-badge :type="role" :caption="role.toUpperCase()"></base-badge>
+      </header>
+      <p>{{ infoText }}</p>
+    </base-card>
+  </section>
+</template>
+
+<script>
+export default {
+  props: ['fullName', 'infoText', 'role'],
+};
+</script>
+
+<style scoped>
+section header {
+  display: flex;
+  justify-content: space-between;
+  align-items: center;
+}
+</style>
\ No newline at end of file

--
Gitblit v1.8.0