Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/johannschopplich/vue-stickers

🍦 One component, multiple fancy sticker variants
https://github.com/johannschopplich/vue-stickers

stickers vue vue-components

Last synced: 27 days ago
JSON representation

🍦 One component, multiple fancy sticker variants

Awesome Lists containing this project

README

        

[![Vue sticker library](./.github/screenshot.png)](https://vue-stickers.netlify.app)

# vue-stickers

[![NPM version](https://img.shields.io/npm/v/vue-stickers?color=a1b858&label=)](https://www.npmjs.com/package/vue-stickers)

This library provides a Vue component to display stickers on your website. Choose from three different types of stickers: `normal`, `shiny`, and `holographic`.

Styling is heavily inspired by the [sticker CSS experiments](https://expensive.toys/toys/stickers) by Artur Bień.

## Setup

```bash
# pnpm
pnpm add vue-stickers

# npm
npm i vue-stickers
```

## Usage

```vue

import { Sticker } from 'vue-stickers/components'



🍦

```

### Nuxt Support

Nuxt is supported out of the box, but the `Sticker` Vue component provided by this library needs to be transpiled for the server-side rendering to work. Add the following to your `nuxt.config.ts`:

```ts
export default defineNuxtConfig({
build: {
transpile: ['vue-stickers']
}
})
```

## Configuration

### Props

The sticker Vue component accepts a `type` prop to change the sticker type.

#### `type="normal"`

```html

Sticker

```

#### `type="shiny"`

```html

🍦

```

#### `type="holographic"`

```html

👻

```

## 💻 Development

1. Clone this repository
2. Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable`
3. Install dependencies using `pnpm install`
4. Start development server using `pnpm run dev` inside `playground`

## License

[MIT](./LICENSE) License © 2023-present [Johann Schopplich](https://github.com/johannschopplich)

[MIT](./LICENSE) License © 2023 [Artur Bień](https://github.com/arturbien)