Skip to content

This temporary project fixes the "window is not defined" error when using SSR. When the original package is patched this package and repository will be deprecated.

Notifications You must be signed in to change notification settings

samline/splide-nextjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Splide | SSR

Splide is a lightweight, powerful and flexible slider and carousel, written in pure JavaScript without any dependencies.

This temporary project fixes the "window is not defined" error when using SSR. When the original package is patched this package and repository will be deprecated.

Install

npm i splide-nextjs --save
yarn add splide-nextjs

Import

import { Splide, SplideSlide } from 'splide-nextjs/react-splide';
import 'splide-nextjs/splide/dist/css/themes/splide-default.min.css';
// or
import 'splide-nextjs/splide/dist/css/themes/splide-sea-green.min.css';
// or
import 'splide-nextjs/splide/dist/css/themes/splide-skyblue.min.css';

About

This temporary project fixes the "window is not defined" error when using SSR. When the original package is patched this package and repository will be deprecated.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published