Slideshow Component Examples

The Slideshow component provides an interactive way to showcase multiple images with corresponding content. It automatically manages the current slide state and provides smooth transitions between slides.

Basic Slideshow

The most common usage pattern with image on top and navigation below:

Data Flow Analysis

See exactly what sensitive data you're sending to vendors with real-time visibility.

Sensitive Data Exposure

Gain visibility into what your teams are sending to external AI APIs.

Compliance Evidence

Pass audits with push-button simplicity by generating definitive proof of data residency.

Slideshow with Navigation on Top

Use the pointsOnTop prop to place the navigation above the image:

Data Flow Analysis

See exactly what sensitive data you're sending to vendors with real-time visibility.

Sensitive Data Exposure

Gain visibility into what your teams are sending to external AI APIs.

Compliance Evidence

Pass audits with push-button simplicity by generating definitive proof of data residency.

Slideshow with Constrained Image Height

Use the maxHeight prop to control the maximum height of images:

Data Flow Analysis

See exactly what sensitive data you're sending to vendors with real-time visibility.

Sensitive Data Exposure

Gain visibility into what your teams are sending to external AI APIs.

Compliance Evidence

Pass audits with push-button simplicity by generating definitive proof of data residency.

Product Feature Showcase

Perfect for highlighting different features of a product:

Network Traffic Analysis

Monitor all encrypted traffic in real-time with kernel-level visibility.

AI-Powered Data Classification

Automatically identify PII, secrets, and sensitive data in your traffic.

Compliance Reporting

Generate audit-ready reports with one click to prove data residency.

Use Case Examples

Showcase different use cases with relevant screenshots:

Third-Party Data Risk

Identify and quantify the sensitive data you're sending to external vendors.

AI Data Exposure

Monitor what data your teams are sending to external AI services.

Compliance Evidence

Automatically generate proof of data residency for regulatory audits.

Component Props Reference

Slideshow Component

PropTypeDefaultDescription
maxHeightNumberundefinedMaximum height in pixels for the image container
pointsOnTopBooleanfalseWhether to place navigation above the image

Slide Component

PropTypeRequiredDescription
imageStringYesURL path to the slide image
imageAltStringYesAlt text for accessibility
titleStringYesSlide title (supports HTML)
descriptionStringYesSlide description (supports HTML)

Implementation Details

How It Works

  1. State Management: The Slideshow component uses Vue's provide/inject pattern to share the current slide state
  2. Automatic Selection: The first slide is automatically selected when the component mounts
  3. Click Navigation: Users can click on any slide navigation item to switch to that slide
  4. Responsive Design: The component automatically adapts to different screen sizes

CSS Classes

The component uses these key CSS classes:

  • screenshot: Applied to the image container for consistent styling
  • text-grape-600: Active slide styling
  • text-grey-600: Inactive slide styling
  • border-b-grape: Active slide border styling

Accessibility Features

  • Proper alt text for images
  • Keyboard navigation support
  • Screen reader friendly structure
  • High contrast active states

Best Practices

Image Optimization

  • Use appropriate image formats (PNG for screenshots, WebP for photos)
  • Optimize images for web (compress without losing quality)
  • Provide meaningful alt text for accessibility
  • Use consistent aspect ratios when possible

Content Structure

  • Keep titles concise and descriptive
  • Use descriptions to provide additional context
  • Ensure each slide has a clear purpose
  • Maintain consistent content length across slides

Performance Considerations

  • Lazy load images when possible
  • Use appropriate image sizes for different screen resolutions
  • Consider using next-gen image formats (WebP, AVIF)

Common Use Cases

  1. Product Demos: Showcase different features or screens
  2. Feature Comparisons: Highlight differences between options
  3. Process Flows: Walk through multi-step processes
  4. Before/After: Show transformations or improvements
  5. Portfolio Showcase: Display different projects or work examples

Troubleshooting

Common Issues

  • Images not loading: Check image paths and ensure files exist
  • Navigation not working: Verify all required props are provided
  • Styling issues: Check for CSS conflicts with global styles

Debug Tips

  • Use browser dev tools to inspect component state
  • Check console for any JavaScript errors
  • Verify image URLs are accessible
  • Test with different screen sizes for responsive issues