Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

Tailwind CSS Tip ✨ You can create a multi-level dropdown menu using Tailwind CSS without javascript. Live demo / copy code ↓ (15/30) follow for 15 more tips 🔔

222,528 Aufrufe • vor 3 Jahren •via X (Twitter)

10 Kommentare

Profilbild von Surjith S M ✪
Surjith S M ✪vor 3 Jahren

Thanks to @shrutibalasa for the idea and @shadcn for the inspiration. 🙏

Profilbild von Surjith S M ✪
Surjith S M ✪vor 3 Jahren

Which tip/snippet do you want to see next with tailwindcss? Comment below.

Profilbild von Tan Gravam
Tan Gravamvor 3 Jahren

@tailwindcss Surjith, the solution is excellent and easy to implement, but I am unsure about using anchor elements for this kind of case in the context of SEO optimization.

Profilbild von Surjith S M ✪
Surjith S M ✪vor 3 Jahren

@tailwindcss I just shown example of an app, in real life these would be links to other pages right? In that case <a> is preferred. If the action happens on same page, it should be <button>

Profilbild von nigel pasco
nigel pascovor 3 Jahren

@tailwindcss How did I not know about Tailwind Play?

Profilbild von Surjith S M ✪
Surjith S M ✪vor 3 Jahren

@tailwindcss you are late to the party. its been there for years.

Profilbild von Josh 💻
Josh 💻vor 3 Jahren

@tailwindcss Thanks for sharing this

Profilbild von Surjith S M ✪
Surjith S M ✪vor 3 Jahren

@tailwindcss 🤜🤛

Profilbild von Abraham
Abrahamvor 3 Jahren

@tailwindcss How does this fare for accessibility?

Profilbild von Surjith S M ✪
Surjith S M ✪vor 3 Jahren

@tailwindcss This is keyboard accessible + tried with mac voiceover and it worked without any issues. Also working on mobile.

Ähnliche Videos