GithubHelp home page GithubHelp logo

nextui-org / next-app-template Goto Github PK

View Code? Open in Web Editor NEW
227.0 6.0 52.0 219 KB

A Next.js 14 with app directory template pre-configured with NextUI (v2) and Tailwind CSS.

Home Page: https://nextui-app.vercel.app

License: MIT License

CSS 0.23% TypeScript 97.57% JavaScript 2.20%
nextjs nextjs-template nextjs13 nextui template

next-app-template's People

Contributors

jrgarciadev avatar nikohann avatar torn4dom4n avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

next-app-template's Issues

Fonts not working

i am fairly new to this so changing the fonts inside fonts.ts is not really changing the fonts for my environment
i have tried to set it directly inside the layout.tsx directly but it still does not work that properly.

[Feature request] - Default navbar doesn't reach 100 in Accessibility

Describe the bug

Running Lighthouse on a near stock navbar from the V2 template leads to a score of 98 in accessibility. The only changes made are just different links, and no more search bar.

This happens in both desktop and mobile mod, and is because the list of items doesn't contain only <li> elements.

Might work on a PR next week if it is an easy fix.

Your Example Website or App

https://portfolio-oop9rd9k1-sinan-karakaya.vercel.app/fr

Steps to Reproduce the Bug or Issue

Clone the latest next-app template.
Run Lighthouse
Get 97-98 in accessibility because of the navbar items.

Expected behavior

Get a 100 score on accessibility when using the stock config

Screenshots or Videos

mobile version with a score of 98:
image

desktop version with a score of 97:
image

Operating System Version

Windows 11

Browser

Chrome

[BUG] - `Accordion` doesn't handle `selectedKeys` changes

NextUI Version

2.0.19

Describe the bug

It's only possible to update accordion selection through the onSelectionChange handler. I have attached a link to a codesandbox demonstrating a simple example where accordions are used as steps with Back/Next buttons. When trying to change selectedKeys - nothing happens.

  const [selectedKeys, setSelectedKeys] = React.useState<Selection>(new Set(["1"]));

  return (
    <Accordion
      selectedKeys={selectedKeys}
      onSelectionChange={setSelectedKeys}
    >
      <AccordionItem key="1" aria-label="Accordion 1" title="Accordion 1">
        <Button onClick={() => setSelectedKeys(new Set(["2"]))}>Next</Button>
      </AccordionItem>
    </Accordion>
)

Your Example Website or App

https://codesandbox.io/p/sandbox/reverent-maria-vr8229

Steps to Reproduce the Bug or Issue

  1. Click on the link to sandbox
  2. See accordions
  3. Click on the "Next" button

Expected behavior

I'd expect that it's possible to update selectedKeys from any handler by just returning new Set of values (new Set())

Screenshots or Videos

No response

Operating System Version

macOS 12.3.1

Browser

Chrome

Theme switch log error?

There's an error when the page is set to light mode:

Warning: Prop aria-label did not match. Server: "Switch to light mode" Client: "Switch to dark mode"

image

Error Hydration failed because the initial UI does not match what was rendered on the server.

Unhandled Runtime Error
Error: Hydration failed because the initial UI does not match what was rendered on the server.

Warning: Expected server HTML to contain a matching in .

See more info here: https://nextjs.org/docs/messages/react-hydration-error

Component Stack
path
svg
MoonFilledIcon
./components/icons.tsx (112:11)
div
label
ThemeSwitch
./components/theme-switch.tsx (19:11)
ul
eval
./node_modules/@nextui-org/navbar/dist/chunk-PSG7VTZC.mjs (20:11)
header

abc

Navbar issue

Thanks for the great starting template. I'm running into a strange issue. I've pretty much matched line by line the setup and the navbar is functioning oddly for me.
image

I don't get the menu icon and when I tap I see the Open/close text toggle but it's not opening the menu.

Any thoughts?

navItems.map on the Server cannot access and build

Error: Cannot access navItems.map on the server. You cannot dot into a client module from a server component. You c Error: Cannot access navItems.map on the server. You cannot dot into a client module from a server component. You can only pass the imported name through.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.