Next.js Discord

Discord Forum

next ui component pagination is not styled as indicated?

Unanswered
futuredevengineer posted this in #help-forum
Open in Discord
Avatar
https://nextui.org/docs/components/pagination

I was reading the docs and trying out some next ui components, and when checking their preview code, it seem to be straightforward and simple, copied that code to my machine, however the pagination is not styled as shown?


when i opened code-sandbox, there was nothing in styles.css?

6 Replies

Avatar
solution: add "./node_modules/@nextui-org/theme/dist/**/*.{js,ts,jsx,tsx}" to
add ` content: [
    "./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
    "./src/components/**/*.{js,ts,jsx,tsx,mdx}",
    "./src/app/**/*.{js,ts,jsx,tsx,mdx}",
 
  ],
in tailwind.config.ts
Avatar
@James4u yeah that's clearly mentioned in the docs
Avatar
actually, that didn't solve the issue 😭
Avatar
@risky thank you
Avatar