-
Notifications
You must be signed in to change notification settings - Fork 28.3k
how could I use bootstrap.css or other library css in our app #105
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
You can use |
fixed it |
@bestwestern the new link -> https://github.com/zeit/next.js#populating-head |
@ckken Could you kindly tell me how you fixed it? |
@tharakabimal here's how I implemented Bootstrap v4 into my project's layout file: https://gist.github.com/gustavlrsn/509694de7f4ee5a5d720d218b21f288e This is through the |
@ckken Thanks. One quick question. Will this have any effect on code splitting? |
@tharakabimal not very well read on how code splitting works in Next.js. However, it will ship the entire CSS file wherever you include that |
Thanks @gustavlrsn for your answer. I'm testing your setup and getting the following error:
My package.json's dependencies are:
What version of |
Fiexed, just needed to install |
This approach of using the link element to a css file from the Head component gives a FOUC, any ideas how to prevent it? |
@ckken How did you manage to implement the nav bar? I'm having trouble adding
|
Did you got any solution to Navbar implementation? |
@dacharjaya I decided to write my own CSS ( |
I got a solution. You should try this. import Link from "next/link";
import Navbar from 'react-bootstrap/lib/Navbar';
import Nav from 'react-bootstrap/lib/Nav';
import NavItem from 'react-bootstrap/lib/NavItem';
import NavbarBrand from 'react-bootstrap/lib/NavbarBrand'; |
@dacharjaya what difference does this make? |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
No description provided.
The text was updated successfully, but these errors were encountered: