1.0.1 • Published 3 years ago

@shapla/vue-cross v1.0.1

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

Shapla Cross

A versatile delete cross for Vue 3

Table of contents

Installation

npm install --save @shapla/vue-cross

Usage

Styles

with Sass:

import '@shapla/vue-cross/src/index.scss';

with CSS:

import '@shapla/vue-cross/dist/style.css';

Javascript Instantiation

import ShaplaCross from '@shapla/vue-cross';

export default {
  name: 'Hello',

  components: {
    ShaplaCross
  },

  methods: {
    handleClick() {
      // Handle click event
    }
  }
}
<shapla-cross @click="handleClick"/>

Props

PropertyTypeRequiredDefaultDescription
sizeStringnonormalValue can be normal or small or medium or large.
ariaLabelStringnocloseValue for html aria-label attribute
<shapla-cross size="large"/>