Questions tagged [nextui]

32 questions
7
votes
6 answers

Module not found: Can't resolve '@swc/helpers/src/_class_private_field_init.mjs' using NextUI with Next.js 13

I´m trying to use NextUI with the latest version of Next.js 13. Following the official documentation of NextUI I have followed these steps: Install NextUI for Next.js npm i @nextui-org/react 2.Go to pages/_app.js and add this: // 1. import…
4
votes
1 answer

change background color of NextUI navbar

I've been struggling to change the background color of the NextUI navbar. I'm using NextUI's navbar component in my react js project. I suppose there is some property / attribute for that but even after researching quite a lot, I'm not aware of it.…
2
votes
0 answers

NextUI - SSRProvider not recognized by application

I am trying to implement NextUI into my react app. Although I have added the SSRProvider component I still receive the following error: You must wrap your application in an SSRProvider to ensure consistent ids are generated between the client and…
safakcavas
  • 21
  • 2
1
vote
0 answers

nextui table shrinks when adding onLoadMore

when I add the onLoadMore function to the table it shrinks have no clue how to fix it using nextui
amghare
  • 101
  • 8
1
vote
1 answer

How to build an editable React table with NextUI table component

I have built a table with NextUI table component and although I have defined the onChange on my input elements, it is not possible to enter a value within them. I have tried various elements, and if I replace the NextUI table with a standard HTML…
1
vote
0 answers

NextUI.Org - Sorting tables

I'm using nextui.org table templates and having some issues while loading the data going to my app. Based on the given sample: import { Table, useAsyncList, useCollator } from "@nextui-org/react"; export default function App() { const collator =…
1
vote
1 answer

How to show spinners while image loads in Next.js?

I'm trying to show spinners while images load on a Next.js site. I'm using NextUI as the UI library. I have a bunch of cards on the site, and want to show a spinner while the image loads. I have tried with a React hook and ternary operator: import…
casr
  • 77
  • 6
1
vote
1 answer

How to change the default font-family on NEXTUI

I created a new next.js project and added the library of CSS nextui and it seems that I can change the font family on the documentation, but there is no example for this, and Idk what to do and how. I searched on other platforms and websites and…
Kevin
  • 11
  • 3
1
vote
1 answer

How to change the background color of the input in NextUI

I'am trying to change the background color of the Input component from NextUi. I already tried to use styled but no luck. What can i do?
0
votes
0 answers

react/nextui Button within Table won't click the first time

With this code (reduced as much as I'm able), and checking the resulting page in multiple browsers, clicking on the "Info" Button within the Table does not trigger the onPress event the first time, but the second (or later) clicks trigger the event.…
0
votes
1 answer

getStaticPaths is not a function NextUI/NextJS

When attempting to use any NextUI components I am running into Type Error: getStaticPaths is not a function, this error ONLY appears when trying to use a NextUI component (Such as Buttons or Chips etc.) This is the second time I have ran into this…
0
votes
0 answers

Context data lost in NextJS dev mode

In NextJS I’m using context, everything works fine but when I navigate with next/link then the context’s data is lost. I have to fetch, set everything again. But when i create build and then check in production mode it works fine. Why? How can i…
0
votes
1 answer

Setting up NextUI with Next.js using TypeScript - CssBaseline missing in @nextui-org/react

I can't find any materials to guide me trough the installation using the latest versions of Next.js and NextUI. The most promissing guide I've found was this one. The only problem is that I'm supposted to do this: import { CssBaseline } from…
0
votes
0 answers

Problem with NextUI Dynamic items using typescript

I have the following code on a React proyect using typescript: interface ICountry { id: string; name: string; } ... const [countries, setCountries] = useState(); ...
MCSI
  • 2,818
  • 26
  • 35
0
votes
0 answers

NextUI v2 warning - how to fix Warning: A props object containing a "key" prop is being spread into JSX?

I'm building a website with Next.js V13 and React V18, using NextUI v2 components. when clicking the dropdown trigger (a button in this case) I get a warning that: "Warning: A props object containing a "key" prop is being spread into JSX" despite…
1
2 3