Skip to content

roxburghm/vue-shadow-text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 test but it helps not having to remember the syntax.

Without ShadowText

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'

shadow-size

Specify the shadow size as a string, eg "10px" or "0.3em"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published