nextui-org / next-app-template Goto Github PK
View Code? Open in Web Editor NEWA 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
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
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.
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.
https://portfolio-oop9rd9k1-sinan-karakaya.vercel.app/fr
Clone the latest next-app template.
Run Lighthouse
Get 97-98 in accessibility because of the navbar items.
Get a 100 score on accessibility when using the stock config
mobile version with a score of 98:
desktop version with a score of 97:
Windows 11
Chrome
hi guy
I look this template I found duplicate import @component/icons
in Navbar component
2.0.19
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>
)
https://codesandbox.io/p/sandbox/reverent-maria-vr8229
I'd expect that it's possible to update selectedKeys
from any handler by just returning new Set of values (new Set()
)
No response
macOS 12.3.1
Chrome
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
As the previous version of types react does not work with the latest redux toolkit
Do checkout this pr : #15
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.
Just created app using the template.
npx create-next-app@latest myapp -e https://github.com/nextui-org/next-app-template
After setup, I immediately ran it. Warning in terminal:
โ Unsupported metadata themeColor is configured in metadata export. Please move it to viewport export instead.
Thanks for fixing. Great work!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.