add a hint component

This commit is contained in:
Hans Pagel
2020-08-13 11:37:46 +02:00
parent a283f051f0
commit f9d272779e
4 changed files with 34 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
<template>
<div :class="`hint hint--${type}`">
<slot />
</div>
</template>
<script>
export default {
props: {
type: {
type: String,
}
}
}
</script>
<style lang="scss" src="./style.scss" scoped></style>

View File

@@ -0,0 +1,10 @@
.hint {
padding: 1rem;
border: 2px solid rgba($colorBlack, 0.1);
border-radius: 0.25rem;
&--warning {
border-color:#ffd8a8;
background-color: #fff4e6;
}
}