1.1.0 • Published 1 year ago

vuemojis-reaction v1.1.0

Weekly downloads
-
License
-
Repository
-
Last release
1 year ago

Vuemojis Reaction

Vuemojis Reaction is a Vue component that adds an interactive emoji reactions interface to your application.

Installation

To install the vuemojis-reaction package, run the following command:

npm install vuemojis-reaction

Usage

<template>
    <Vuemojis :reactions="reactions" @selected-reaction="handleReaction" />
</template>

<script setup>
import { Vuemojis } from 'vuemojis-reaction';

const reactions = [
  { label: 'Like', icon: '👍', color: 'yellow' },
  { label: 'Love', icon: '❤️', color: 'red' },
  { label: 'Surprised', icon: '😮', color: 'yellow' },
  { label: 'Brilliant', icon: '💡', color: 'blue' }
];

function handleReaction(reaction) {
  console.log('Selected reaction:', reaction);
}
</script>

Props

The Vuemojis component accepts the following props:

reactions (Array): An array of reaction objects.
label (String): Default text of the button
1.1.0

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago