100+ Box Shadows For Vue App

Install & Download:

# Vue 2
$ yarn add vue-box-shadows
$ npm i vue-box-shadows
# Vue 3
$ yarn add vue3-box-shadows
$ npm i vue3-box-shadows

Description:

A Vue 3/2 plugin that provides 100+ well-designed box shadow effects for containers.

How to use it:

1. Import and register the vueBoxShadows.

// Vue 3
import { createApp } from "vue"
import App from "./App.vue"
import shadows from "vue3-box-shadows";
const app = createApp(App);
app.use(shadows);
app.mount('#app');
// Vue 2
import Vue from "vue"; 
import vueBoxShadows from "vue-box-shadows";
Vue.use(vueBoxShadows, {
  // options
});

2. Apply a basic box shadow to a DIV container.

<template>
  <div v-box-shadow>
    ...
  </div>
</template>

3. Specify the shadow type.

GroupIdNames ($ is value/number)Values
None0none1
Elevation1-24el-$1-24
Borders25-30bd-$1-6
Neumorphism31-39neu-$ or neu-$-i or neu-$-io1-3
Axis x40-45ax-$1-6
Axis y46-51ay-$1-6
Small inner side52-55si-$1-4
Medium inner side56-59mi-$1-4
Large inner side60-63li-$1-4
Top64-69t-$1-6
Bottom70-75b-$1-6
Right side76-81r-$1-6
Left side82-87l-$1-6
Angle: top left88-93tl-$1-6
Angle: top right94-99tr-$1-6
Angle: bottom right100-105br-$1-6
Angle: bottom left106-111bl-$1-6
Patterns112-115p-$1-2
<template>
  <!-- use name -->
  <div v-box-shadow:neu-3></div>
  <!-- or use id -->
  <div v-box-shadow="34"></div>
</template>

4. Available options:

Vue.use(vueBoxShadows, {
  // inject styles into head section automatically
  useClass: false,
  // create your own box shadows
  shadowBaseCustom: '0 2px 8px 0 rgb(50 50 50 / 8%)',
});

Preview:

100+ Box Shadows For Vue App

Changelog:

v2.0.3 (11/15/2022)

  • Update package

v2.0.2 (11/14/2022)

  • Update

v2.0.0 (09/11/2022)

  • Added a new option to use shadows.
Tags:

Add Comment