Last active
December 20, 2022 14:42
-
-
Save agusnavce/ce8bacbbcf0bf1462e2b8c92207e5421 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div class="input--field"> | |
<p class="input--field-label"> | |
{{ label }} | |
</p> | |
<template v-if="!hasFocus && value === ''"> | |
<p class="placeholder">{{ placeholder }}</p> | |
</template> | |
<div> | |
{{value}} | |
</div> | |
</div> | |
</template> | |
<script> | |
export default { | |
name: 'BaseTextareaSpelling', | |
props: { | |
value: { | |
type: [String, Number], | |
default: '', | |
}, | |
label: { | |
type: String, | |
default: '', | |
}, | |
placeholder: { | |
type: String, | |
default: '', | |
}, | |
}, | |
data() { | |
return {}; | |
}, | |
}; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What framework was used to write it