Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

Introducing Zeego 2: dropdown & context menus that work everywhere → Pure Radix UI on Web → react-native-web dependency dropped → Works with Tailwind, shadcn UI, pure CSS, etc. → Native menu on iOS & Android → Works in web-only codebases with zero config yarn add zeego

46,219 Aufrufe • vor 1 Jahr •via X (Twitter)

10 Kommentare

Profilbild von Fernando Rojo
Fernando Rojovor 1 Jahr

One subtle change is that Zeego is now web-first. Specifically: no more web.tsx files. Web is always the default. React Native's bundler will always look for platform extensions; web ones won't. Universal libraries should go web-first to simplify setup. (I've come full circle)

Profilbild von Fernando Rojo
Fernando Rojovor 1 Jahr

Dropping react-native-web means dropping its prebuilt styles. Zeego for is now 100% unstyled, meaning there are some breaking changes. It should only take a minute to address them, and I tried to be as exhaustive to document every case that might break.

Profilbild von Fernando Rojo
Fernando Rojovor 1 Jahr

Check out the release notes to see the migration guide. yarn add zeego

Profilbild von Fernando Rojo
Fernando Rojovor 1 Jahr

and learn about zeego →

Profilbild von Frank Calise
Frank Calisevor 1 Jahr

@shadcn Can't wait to try this out! Nice work. Are all the deps new arch compatible? Wasn't sure about ios utilities

Profilbild von Fernando Rojo
Fernando Rojovor 1 Jahr

@shadcn Not yet, but I recommend sponsoring @GoDominic on GitHub as he tries to make this a reality. It’s a hard problem but it looks like he’s been making good progress

Profilbild von Fernando Rojo
Fernando Rojovor 1 Jahr

Zeego 2.0.3 fixes common typescript issues people reported

Profilbild von Hirbod
Hirbodvor 1 Jahr

@shadcn Amazing work, can't wait to upgrade!

Profilbild von Kim Chouard / KIMIK
Kim Chouard / KIMIKvor 1 Jahr

@shadcn This is 🔥🔥🔥 Being web-first on top of it is the 🍒 on the 🎂👌

Profilbild von Gunnar Torfi
Gunnar Torfivor 1 Jahr

@shadcn Congrats on the release, this is huge! 🔥

Ähnliche Videos

I've been building a music player with Next.js for fun. Here's a quick demo of how it works (it's open source!) • Demo: • Code: If you want to learn more about how it's built, here's more details ↓ I'm using Postgres (with Drizzle) to store information about the songs and playlists. Audio and image files are stored in Vercel Blob (object storage), and the URLs are then referenced in the database. For the UI, I'm using shadcn/ui (so Tailwind CSS and Radix). This made it easy to copy/paste in some nice components, like the dropdown menus. I built the entire first version of the UI in v0 and then iterated from there, feeding it my Drizzle schema as a source in the project and having it scaffold some of the boilerplate for me: I added support for keyboard navigation (using arrow keys) or vim motions (j/k to go up/down, and h/l to go between playlists and tracks). Also, space to toggle the now playing song, and / to focus the search input. The search function has a nice utility to highlight the currently searched text on the page in yellow. Then, I was exploring how to pass metadata from my application to macOS or iOS. Turns out there's an API for that – MediaSession. Web apps can share metadata about what media is playing (title, artist, album artwork) and sync play/pause/seek with system media controls. Works across modern browsers — even integrates with iOS dynamic island and shows up on lock screens: I set up my app like a PWA – it has a manifest.json file, so it can be installed to my iOS home screen or added to my dock on macOS. On iOS, it then uses the full screen height `100dvh` (dynamic viewport) and has padding on the bottom for the safe area with the `env()` CSS function. Finally, I was able to use the Vercel AI SDK in a script to clean up the metadata on audio files I downloaded from YouTube. Bonus: I even was able to dogfood the React Compiler, which helped me fix a performance bug! That's all! It's fun to make personal software:

Lee Robinson

118,242 Aufrufe • vor 1 Jahr