0.1.1 • Published 5 years ago

@dexmo/vue-transitioning-result-icon v0.1.1

Weekly downloads
54
License
MIT
Repository
github
Last release
5 years ago

Transitioning Result Icon for Vue.js

A scalable result icon (SVG) that transitions the state change, that is the SVG shape change is transitioned as well as the color. Demonstration can be found here.

Install

npm i --save @dexmo/vue-transitioning-result-icon
yarn add @dexmo/vue-transitioning-result-icon

Usage

import TransitioningResultIcon from '@dexmo/vue-transitioning-result-icon';
<transitioning-result-icon :error="errorFlag"/>

Props

NameTypeDescription
errorBooleanWhether to display error or result icon
durationNumber (default: 500)Duration of the transition in milliseconds
successColorString (default: 'green')CSS Color string for the success state
errorColorString (default: 'red')CSS Color string for the error state