@caeher/nuxt-gallery
v0.0.1
Published
## Development
Readme
Nuxt Gallery
This is a simple image gallery for Nuxt3
Instalation
npm install --save-dev @caeher/nuxt-gallery
Setup
Add nuxt
export default defineNuxtConfig({
modules: [
'@caeher/nuxt-gallery'
],
gallery: {
// enabled: false // Disabled module
},
})Usage
<BasicGallery
:images="images"
rounded="lg"
drop-shadow="lg"
shadow="lg"
/>Props
| Name | Type | Description | | -- | -- | -- | | images | string[] | Images sources | | rounded | string<'sm' | 'md' | 'lg' | 'xl' | 'none'> | border-radius property | | drop-shadow | string<'sm' | 'md' | 'lg' | 'xl' | 'none'> | box-shadow property | | shadow | string<'sm' | 'md' | 'lg' | 'xl' | 'none'> | drop-shadow property |
Example images prop structure
const images = [
'https://example.com/image.png',
...
]Development
- Run
npm run dev:prepareto generate type stubs. - Use
npm run devto start playground in development mode.
