vue-shadow-text
v1.0.10
Published
Simple VueJS 3 component that lets you see text placed over an image by using a dropshadow
Downloads
1
Readme
Vue Shadow Text
A very simple component to easily add a shadow beneath some text to aid readability when overlaying on an image.
Basically it's just adding some simple CSS to the text but it helps not having to remember the syntax.
Installation
npm install vue-shadow-text
In main.js
import ShadowText from 'vue-shadow-text'
createApp(App)
.use(ShadowText)
.mount('#app')
Usage
<shadow-text>This text is drop shadowed</shadow-text>
Props
shadow-color
Specify the shadow color as a string, eg '#FF0000' or 'rgba(255, 0, 0, 0.5)'
Default: #000000;
shadow-size
Specify the shadow size as a string, eg "10px" or "0.3em"
Default: 0.7em;