next ui component pagination is not styled as indicated?
Unanswered
futuredevengineer posted this in #help-forum
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
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
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@futuredevengineer 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
yeah that's clearly mentioned in the docs
@James4u yeah that's clearly mentioned in the docs
actually, that didn't solve the issue ğŸ˜
@risky thank you
https://nextui.org/docs/guide/installation#tailwind-css-setup I followed the instructions here anyway