Skip to content

A minimal customisable angular library for creating stunning product galleries like Flipkart, Amazon and other Top E-commerce platforms! πŸš€ Open source and beginner-friendly.

License

Notifications You must be signed in to change notification settings

rohtashsethi/ngx-product-gallery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Ngx Product Gallery

A minimal customizable angular library for creating stunning product galleries like Flipkart, Amazon and other Top E-commerce platforms! πŸš€

Built to help developers showcase products like a pro, with minimal effort and maximum style. 🌟


Key Features β€’ Installation β€’ How To Use β€’ Demo β€’ Support β€’ License

Key Features

  • πŸ–ΌοΈ Dynamic Image Galleries: Perfect for showcasing product collections.
  • πŸ› οΈ Easy Customization: Tailor it to fit your brand’s unique aesthetic.
  • ⚑ Angular Power: Built using Angular’s latest features for blazing performance.

Installation

npm install ngx-product-gallery

How To Use

First, import the NgxProductGalleryComponent to your component/module:

import { Component } from '@angular/core';
import { NgxProductGalleryComponent } from 'ngx-product-gallery';

@Component({
  selector: 'app-demo',
  standalone: true,
  imports: [NgxProductGalleryComponent],
  templateUrl: './demo.component.html',
  styleUrl: './demo.component.scss'
})
export class DemoComponent {}

// or 

import { NgxProductGalleryComponent } from 'ngx-product-gallery';

@NgModule({
  declarations: [...],
  imports: [NgxProductGalleryComponent],
  bootstrap: [...]
})
export class AppModule {}

Then use the NgxProductGalleryComponent in your HTML like below:

<ngx-product-gallery 
  [images]="images">
</ngx-product-gallery>

Pass Your Images

import { Component } from '@angular/core';
import { IImage, NgxProductGalleryComponent } from 'ngx-product-gallery';

@Component({
  selector: 'app-demo',
  standalone: true,
  imports: [NgxProductGalleryComponent],
  templateUrl: './demo.component.html',
  styleUrl: './demo.component.scss'
})
export class DemoComponent {
  images: IImage[] = [
    { thumbnail: 'https://picsum.photos/id/1/64', image: 'https://picsum.photos/id/1/1200', altText: 'Image 1', id: 1 },
    { thumbnail: 'https://picsum.photos/id/2/64', image: 'https://picsum.photos/id/2/1200', altText: 'Image 2', id: 2 },
    { thumbnail: 'https://picsum.photos/id/3/64', image: 'https://picsum.photos/id/3/1200', altText: 'Image 3', id: 3 },
    { thumbnail: 'https://picsum.photos/id/4/64', image: 'https://picsum.photos/id/4/1200', altText: 'Image 4', id: 4 },
    { thumbnail: 'https://picsum.photos/id/5/64', image: 'https://picsum.photos/id/5/1200', altText: 'Image 5', id: 5 },
    { thumbnail: 'https://picsum.photos/id/6/64', image: 'https://picsum.photos/id/6/1200', altText: 'Image 6', id: 6 },
    { thumbnail: 'https://picsum.photos/id/7/64', image: 'https://picsum.photos/id/7/1200', altText: 'Image 7', id: 7 },
    { thumbnail: 'https://picsum.photos/id/8/64', image: 'https://picsum.photos/id/8/1200', altText: 'Image 8', id: 8 },
    { thumbnail: 'https://picsum.photos/id/9/64', image: 'https://picsum.photos/id/9/1200', altText: 'Image 9', id: 9 },
  ]
}

🀝 Contributing

We’re better together! Got an idea? Found a bug? Let’s collab! Check out CONTRIBUTING.md to know the deets.

Support

Buy Me A Coffee

πŸ“œ License

This project is licensed under the MIT License. Check out the LICENSE.md file for more.

🎯 Stay Connected

  • 🌟 Star this repo to support us.
  • 🐦 Follow us on Twitter.
  • πŸ’Ό Connect on LinkedIn.

Demo

Checkout the demo

Checkout how it works in Stackblitz - In progress

About

A minimal customisable angular library for creating stunning product galleries like Flipkart, Amazon and other Top E-commerce platforms! πŸš€ Open source and beginner-friendly.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published