0.0.1 • Published 4 years ago

vue-neumorphism-element v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

Nuemorphism / Soft UI - Vue generic element

Neumorphism / Soft UI easy to customize generic component.

npm.io npm.io

Install

$ npm i vue-neumorphism-element --save

Basic Usage

<template>
  <div class="app">
    <NeuElement
      tag="div"
      :classList="['class1', 'class2']"
      type="flat"
      :surrounded="false"
      height="150px"
      width="150px"
      radius="50%"
      color="#d2d2d2"
      :distance="5"
      :intensity="0.15"
      :blur="10"
    >
    Insert HTML code here if you need
    </NeuElement>
  </div>
</template>

<script>
import NeuElement from "vue-neumorphism-element";

export default {
  components: { NeuElement }
}
</script>

<style>
@import '~vue-neumorphism-element/dist/vue-neumorphism-element.css';
</style>

Props

PropertyDescriptionTypeAccepted ValuesDefault
tagHTML element tagStringAll valid HTML elementsdiv
classListArray of class namesArray--
widthElement widthString--
heightElement heightString--
surroundedAdd additional surrounded typeBoolean-false
surroundWidthSurrounded border widthString--
surroundHeightSurrounded border heightString--
colorElement color *requiredString--
radiusElement border radiusString-50px
distanceNeumorphism style distanceString-30
intensityNeumorphism style intensityNumber-0.15
blurNeumorphism style blurNumber-60
typeElement typeStringflat, concave, convex, pressedflat

License

MIT © Marceli Olszewski - 2020