正在加载视频...

视频加载失败

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 次观看 • 3 年前 •via X (Twitter)

10 条评论

Surjith S M ✪ 的头像
Surjith S M ✪3 年前

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

Surjith S M ✪ 的头像
Surjith S M ✪3 年前

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

Tan Gravam 的头像
Tan Gravam3 年前

@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.

Surjith S M ✪ 的头像
Surjith S M ✪3 年前

@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>

nigel pasco 的头像
nigel pasco3 年前

@tailwindcss How did I not know about Tailwind Play?

Surjith S M ✪ 的头像
Surjith S M ✪3 年前

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

Josh 💻 的头像
Josh 💻3 年前

@tailwindcss Thanks for sharing this

Surjith S M ✪ 的头像
Surjith S M ✪3 年前

@tailwindcss 🤜🤛

Abraham 的头像
Abraham3 年前

@tailwindcss How does this fare for accessibility?

Surjith S M ✪ 的头像
Surjith S M ✪3 年前

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

相关视频