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

https://github.com/wobsoriano/vue3-swatches

🎨 Vue 3 swatch picker
https://github.com/wobsoriano/vue3-swatches

swatches vue

Last synced: 6 months ago
JSON representation

🎨 Vue 3 swatch picker

Awesome Lists containing this project

README

          

# vue3-swatches

🎨 Vue 3 swatch picker

Though not a fork, this package is a complete copy of [vue-swatches](https://github.com/saintplay/vue-swatches) made to work with Vue 3.

## Install

```sh
pnpm add vue3-swatches
```

## Example

Install as a global plugin (Optional)

```js
// main.js
import { createApp } from 'vue'
import VSwatches from 'vue3-swatches'
import 'vue3-swatches/dist/style.css'

const app = createApp(App)
app.use(VSwatches)
```

or import it locally

```vue

import { ref } from 'vue'
import { VSwatches } from 'vue3-swatches'
import 'vue3-swatches/dist/style.css'

const color = ref("#1FBC9C")

```

### Using a Custom Trigger

```html





```

### Nuxt

```js
export default defineNuxtConfig({
modules: ['vue3-swatches/nuxt']
})
```

Head over to https://saintplay.github.io/vue-swatches/ for the complete documentation.

### License

MIT