What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Use Swiper’s React components to build a responsive image carousel: install the package, render one SwiperSlide per image, and adjust the number of visible slides at suitable viewport widths. The example below uses one slide on narrow screens and more on wider screens. To make a carousel in React, you can also build the interaction yourself or choose another library; Swiper is one documented route, not a universal requirement.

Install Swiper and add a basic carousel

In your React project, install Swiper with npm:

npm install swiper

Import the React components from swiper/react and the base stylesheet. Then map your image data into slides. This example uses illustrative image paths and dimensions; replace them with your own assets and their actual intrinsic dimensions.

import { Swiper, SwiperSlide } from 'swiper/react';
import 'swiper/css';

const images = [
  { src: '/images/coast.jpg', alt: 'Rocky coast at sunset' },
  { src: '/images/forest.jpg', alt: 'Sunlight through a forest' },
  { src: '/images/city.jpg', alt: 'City buildings at dusk' },
];

export function ImageCarousel() {
  return (
    <Swiper
      slidesPerView={1}
      spaceBetween={12}
      breakpoints={{
        640: { slidesPerView: 2, spaceBetween: 16 },
        1024: { slidesPerView: 3, spaceBetween: 24 },
      }}
    >
      {images.map((image) => (
        <SwiperSlide key={image.src}>
          <img
            src={image.src}
            alt={image.alt}
            width="1200"
            height="800"
            loading="eager"
            style={{ display: 'block', width: '100%', height: 'auto' }}
          />
        </SwiperSlide>
      ))}
    </Swiper>
  );
}

Swiper’s React integration documents Swiper, SwiperSlide, and optional modules in its React documentation. The snippet uses stable image-source keys; if your data has a unique, persistent ID, use that instead. React’s image reference covers image attributes, alternatives, and responsive candidates.

Choose breakpoints and image sizing for your layout

Swiper breakpoints are minimum width thresholds by default: at 640 CSS pixels and above this example asks for two slides, and at 1024 pixels and above it asks for three. The numbers are starting points, not prescribed values. Choose thresholds based on the carousel’s actual container width, slide content, and desired gap; a component in a narrow sidebar may need different values from a full-width page.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

slidesPerView controls how many slides are visible, while spaceBetween sets the gap in pixels. The Swiper API lists which options can change at breakpoints. It cautions that options that change layout or behavior, such as loop and effect, do not work as breakpoint settings. Container-based breakpoints are described in the Swiper type documentation as beta, so check the installed version’s documentation before relying on them in components sized by a parent rather than the viewport.

For image stability and appearance:

  • Set each image’s width and height to its real intrinsic dimensions so the browser can reserve space before it loads. The 1200-by-800 values above are examples only.
  • When tiles should share a fixed shape, set an aspect ratio on the image or its wrapper. Use object-fit: cover when cropping is acceptable; use contain when viewers must see the whole image.
  • If you have appropriately generated image variants, add srcSet and sizes so the browser can select a candidate for the rendered size and display density.
  • Native loading="lazy" is useful for images likely to be offscreen. Avoid delaying the initial, above-the-fold hero image without considering its discovery and priority. React also documents how lazy loading affects automatic preload hints for server-rendered images.

Swiper’s API describes native browser lazy loading from version 9 onward and notes limitations for its own lazy-preload option in React and Vue. Prefer the image attributes in the example, and verify behavior against the Swiper version your project actually installs.

Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

Add keyboard-operable navigation when users need controls

Touch gestures are not a substitute for controls. W3C’s carousel guidance calls for functionality to display and announce items, and the WAI-ARIA Authoring Practices carousel pattern describes previous and next controls. Make controls reachable and usable by keyboard, give buttons discernible labels, retain visible focus indicators, and convey which slide or item is current without relying on color alone. Give the overall carousel an accessible name and structure slides meaningfully.

Swiper’s React docs say to import optional Navigation and Pagination modules from swiper/modules, pass them through the modules prop, enable their options, and import the matching CSS when using those features. A minimal setup looks like this:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
import { Swiper, SwiperSlide } from 'swiper/react';
import { Navigation, Pagination } from 'swiper/modules';
import 'swiper/css';
import 'swiper/css/navigation';
import 'swiper/css/pagination';

export function ControlledCarousel({ images }) {
  return (
    <Swiper
      modules={[Navigation, Pagination]}
      navigation
      pagination={{ clickable: true }}
      slidesPerView={1}
      spaceBetween={12}
      breakpoints={{
        640: { slidesPerView: 2, spaceBetween: 16 },
        1024: { slidesPerView: 3, spaceBetween: 24 },
      }}
    >
      {images.map((image) => (
        <SwiperSlide key={image.id ?? image.src}>
          <img src={image.src} alt={image.alt} />
        </SwiperSlide>
      ))}
    </Swiper>
  );
}

This enables Swiper’s navigation and pagination features; it does not by itself establish that a particular assembled carousel meets every accessibility need. Check the rendered controls, labels, focus behavior, and active-item communication in your application. The WAI tutorials cover carousel structure and announcements and functionality.

The WAI styling tutorial recommends that buttons and links not inline in a text block be at least 44 × 44 CSS pixels; that target-size guidance is associated with WCAG 2.5.5, Level AAA, not a universal minimum for every WCAG conformance context. Ensure controls contrast against variable image backgrounds and remain available on small screens. See WAI carousel styling guidance.

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Handle autoplay deliberately—or leave it off

Do not add autoplay just because a carousel can rotate. Movement can distract or make text difficult to read. W3C WAI’s carousel tutorial says: “Users must be able to pause carousel movement because it can be too fast or distracting, making text hard to read.”

If automatic rotation is genuinely needed, provide a rotation control and a way to stop and resume movement. The WAI-ARIA APG carousel pattern says automatic rotation should stop when keyboard focus enters the carousel and while the pointer hovers; after focus enters, it should not resume unless the user explicitly starts it again. Keep focus stable when previous/next controls are activated, and handle announcements so user-triggered changes are understandable without moving focus unnecessarily. Confirm the behavior of the exact component and library configuration you ship; having an accessibility-related module does not prove the assembled carousel is accessible.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

Choose Swiper or a custom implementation

Swiper provides a React adapter and built-in carousel behavior, which can reduce the amount of interaction code you need to write. A custom component avoids adding this particular dependency and gives you direct control over markup and behavior, but you must implement sizing, touch input, controls, keyboard interaction, and announcements yourself. Choose based on the interactions your design requires, dependency and bundle constraints, and the maintenance your team can support. Another carousel library is also an option. No performance comparison or runtime test is claimed here.

Troubleshoot common implementation issues

  • Imports or styles fail: confirm swiper is installed, use the documented swiper/react and swiper/modules import paths for your installed version, and include swiper/css. If using Navigation or Pagination, also import their CSS.
  • The slide count does not change where expected: breakpoint keys are minimum widths by default. Check the viewport or containing layout width and ensure the parameters you are changing are supported by Swiper’s breakpoint API; do not put loop or effect there.
  • Images jump or crop unexpectedly: use accurate intrinsic dimensions or reserve space with CSS. Set the intended aspect ratio and choose cover or contain based on whether cropping is acceptable.
  • The first visible image appears late: do not lazy-load the likely largest-contentful or initial hero image by default. Reserve lazy loading for images likely to start offscreen, and inspect the actual loading behavior in your installed Swiper version.
  • People cannot operate it without swiping: add keyboard-accessible previous and next controls, visible focus styling, and a readable current-item state; test the controls at narrow widths too.
  • Autoplay is hard to follow: remove it if it is not essential. Otherwise provide pause/resume control and implement the focus and hover stop behavior described in WAI guidance.

Or skip the browser setup

If you need a screenshot of a page containing your carousel rather than a React carousel implementation, ScreenshotNeo offers a one-request website screenshot API. For example, this saves a screenshot of Stripe as WebP:

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

See the ScreenshotNeo API documentation for setup and options. It accepts cookie or consent banners and removes more than 60 known consent platforms, newsletter popups, and chat widgets before capture; each step can be turned off. Bot checks or CAPTCHAs, blank pages, timeouts, failed loads, and cache hits are not billed, and the response identifies the page verdict and billing status in headers. Its MCP server provides take_screenshot, get_page_info, and capture_pdf tools for Claude, Cursor, and other MCP clients. The Free plan includes 1,000 screenshots per month without a card; paid plans start at $5 for 3,000 shots.

Sign up for ScreenshotNeo’s free plan: 1,000 screenshots a month, no card required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.