Comments (3)
Use the loader inside of body tag.
from nextjs-toploader.
Working on mine. :)
from nextjs-toploader.
I have updated my proejct ot Next 14 and I can not able to see toploader.
In app/layout.tsx
import { Toaster } from "@/components/ui/toaster"; import "@/styles/globals.css"; import type { Metadata } from "next"; import NextTopLoader from "nextjs-toploader"; export default function RootLayout({ children }: { children: React.ReactNode }) { return ( <html lang="en" suppressHydrationWarning> <NextTopLoader height={500} zIndex={9999} color="black" /> <body> {children} <Toaster /> </body> </html> ); }
I have tried to make layout.tsx to a client component, it still not working.
Seems like you're not using the TopLoader inside the body tags, just include the TopLoader inside the body tags.
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<body>
<NextTopLoader height={500} zIndex={9999} color="black" />
{children}
<Toaster />
</body>
</html>
);
}
from nextjs-toploader.
Related Issues (20)
- unnecessary starts HOT 1
- How to apply zIndex for progress bar and circular progress
- Progress Stuck if I Click Link with the same route HOT 4
- Gets stuck if href="#" HOT 2
- Hide side spinner HOT 1
- Prop to show TopLoader at bottom HOT 1
- Spinner doesn't have margin HOT 1
- e.preventDefault() does not prevent animation HOT 3
- It's not working with router.push HOT 2
- Don't trigger start animation when opening in new tab (CTRL + Click) HOT 6
- NextTopLoader stopped working on Nextjs 14.0.3 HOT 33
- So how is this supposed to work? HOT 4
- issue nextjs version 14.0.3 not finish loader HOT 7
- Toploader gets stuck when clicked on external links HOT 4
- Please add a small video demonstration
- Special URL schemes make the progress stuck HOT 2
- Element style not allowed as child of element body HOT 2
- webpack-hmr is always pending HOT 1
- Animation continues indefinitely when replacing the current route HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nextjs-toploader.