Przeglądaj źródła

feat: Added InfoIcon component

Owen Diffey 3 lat temu
rodzic
commit
4b5ebc6795
1 zmienionych plików z 23 dodań i 0 usunięć
  1. 23 0
      frontend/src/components/global/InfoIcon.vue

+ 23 - 0
frontend/src/components/global/InfoIcon.vue

@@ -0,0 +1,23 @@
+<template>
+	<span class="material-icons info-icon" :content="tooltip" v-tippy>
+		info
+	</span>
+</template>
+
+<script>
+export default {
+	props: {
+		tooltip: {
+			type: String,
+			required: true
+		}
+	}
+};
+</script>
+
+<style lang="less" scoped>
+.material-icons.info-icon {
+	font-size: 14px;
+	margin: auto 5px;
+}
+</style>