1.0.7 • Published 3 months ago

nuxt-tailwind-lightbox v1.0.7

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

ezgif-2-e81342282f

Quick Setup

  1. Add nuxt-tailwind-lightbox dependency to your project
# Using pnpm
pnpm add -D nuxt-tailwind-lightbox

# Using yarn
yarn add --dev nuxt-tailwind-lightbox

# Using npm
npm install --save-dev nuxt-tailwind-lightbox
  1. Add nuxt-tailwind-lightbox to the modules section of nuxt.config.ts
export default defineNuxtConfig({
  modules: [
    'nuxt-tailwind-lightbox'
  ]
})
  1. Add the source files of Nuxt Tailwind Lightbox to the tailwind.config.js template path:
module.exports = {
  content: [
    // other files...
    './node_modules/nuxt-tailwind-lightbox/**/*.{js,ts,vue}',
  ],
}

That's it! You can now use the <NuxtTailwindLightbox :image-list="your_image_list_array" /> component in your Nuxt app ✨

📃 Props

NameTypeDefaultDescription
image-listArray---Array of images to fill the gallery

Development

# Install dependencies
npm install

# Generate type stubs
npm run dev:prepare

# Develop with the playground
npm run dev

# Build the playground
npm run dev:build

# Run ESLint
npm run lint

# Run Vitest
npm run test
npm run test:watch

# Release new version
npm run release
1.0.7

3 months ago

1.0.6

4 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago