Video yรผkleniyor...

Video Yรผklenemedi

Introducing ๐š‘๐š’๐š-๐šŠ๐š›๐šŽ๐šŠโ€”a collection of Tailwind CSS utility classes for expanding the hit area of interactive elements. Small hit areas are a silent UX killer. One class fixes it. Distributed via shadcn registry - see link below.

140,470 gรถrรผntรผleme โ€ข 7 ay รถnce โ€ขvia X (Twitter)

59 Yorum

Valerii Strilets ๐Ÿ‡บ๐Ÿ‡ฆ profil fotoฤŸrafฤฑ
Valerii Strilets ๐Ÿ‡บ๐Ÿ‡ฆ7 ay รถnce

@tailwindcss @shadcn done

kian bazza profil fotoฤŸrafฤฑ
kian bazza7 ay รถnce

let's goooo ๐Ÿ’ช also it seems like I left some dead code in there ๐Ÿ˜ฌ; feel free to re-install to remove the --๐š‘๐š’๐š-๐šŠ๐š›๐šŽ๐šŠ-๐š‹๐š•๐šŽ๐šŽ๐š-* related code may release that as an add-on later the intention was to add a ๐š‘๐š’๐š-๐šŠ๐š›๐šŽ๐šŠ-๐š‹๐š•๐šŽ๐šŽ๐š-* utility to add "extra" hit area to account for borders, instead of doing "๐š‘๐š’๐š-๐šŠ๐š›๐šŽ๐šŠ-๐Ÿบ.๐Ÿธ๐Ÿป" which may not read as well you could do "๐š‘๐š’๐š-๐šŠ๐š›๐šŽ๐šŠ-๐Ÿบ ๐š‘๐š’๐š-๐šŠ๐š›๐šŽ๐šŠ-๐š‹๐š•๐šŽ๐šŽ๐š" but wasn't sold enough on it

Valerii Strilets ๐Ÿ‡บ๐Ÿ‡ฆ profil fotoฤŸrafฤฑ
Valerii Strilets ๐Ÿ‡บ๐Ÿ‡ฆ7 ay รถnce

@tailwindcss @shadcn Oh, sure, Iโ€™ll reinstall it, thanks!

Tom Menezes profil fotoฤŸrafฤฑ
Tom Menezes7 ay รถnce

@tailwindcss @shadcn awesome! really like your /craft as well

kian bazza profil fotoฤŸrafฤฑ
kian bazza7 ay รถnce

@tailwindcss @shadcn Thanks Tom ๐Ÿ™ May need to do a post on that page, I don't really advertise it but it's basically my portfolio haha

Saul profil fotoฤŸrafฤฑ
Saul7 ay รถnce

@tailwindcss @shadcn Would love to see a non shadcn registry version. Just a copy&paste for the globals.css

designer profil fotoฤŸrafฤฑ
designer7 ay รถnce

@tailwindcss @shadcn Whatโ€™s the CSS that powers it?

zenith profil fotoฤŸrafฤฑ
zenith7 ay รถnce

@tailwindcss @shadcn looks very familiar lol. cooked on the demo video fr fr!

kian bazza profil fotoฤŸrafฤฑ
kian bazza7 ay รถnce

@tailwindcss @shadcn hahaha I told you I was about to make a post on hit areas ๐Ÿคฃ thank u sir much appreciated ๐Ÿ™

zenith profil fotoฤŸrafฤฑ
zenith7 ay รถnce

@tailwindcss @shadcn nah bro, c'mmon. i'm Zenith still 20. can't be calling me sir!

kian bazza profil fotoฤŸrafฤฑ
kian bazza7 ay รถnce

@tailwindcss @shadcn i apologize sincerely thank u unc

zenith profil fotoฤŸrafฤฑ
zenith7 ay รถnce

@tailwindcss @shadcn ๐Ÿคฃ๐Ÿคฃ

Alfon profil fotoฤŸrafฤฑ
Alfon7 ay รถnce

@tailwindcss @shadcn Thank you for making the web more accessible ๐Ÿ™

kian bazza profil fotoฤŸrafฤฑ
kian bazza7 ay รถnce

@tailwindcss @shadcn ๐Ÿ

Sadi Moodi profil fotoฤŸrafฤฑ
Sadi Moodi7 ay รถnce

@tailwindcss @shadcn This is actually brilliant. Hit area bugs are the silent killer of UX - users click, nothing happens, they rage-quit. I've seen 30% drop-off on mobile forms from tiny tap targets alone. The real win? Consistent 44px minimum across all interactive elements. No excuses.

kian bazza profil fotoฤŸrafฤฑ
kian bazza7 ay รถnce

@tailwindcss @shadcn "I've seen 30% drop-off on mobile forms from tiny tap targets alone" that is a crazy stat if it's true thanks for the support ๐Ÿ’ช

Ben Sehl profil fotoฤŸrafฤฑ
Ben Sehl7 ay รถnce

@tailwindcss @shadcn So smart. Have needed this many times.

kian bazza profil fotoฤŸrafฤฑ
kian bazza7 ay รถnce

@tailwindcss @shadcn Thanks Ben ๐Ÿ™

Vlad Sazonau profil fotoฤŸrafฤฑ
Vlad Sazonau7 ay รถnce

@tailwindcss @shadcn Very cool, thank you ๐Ÿ™

kian bazza profil fotoฤŸrafฤฑ
kian bazza7 ay รถnce

@tailwindcss @shadcn Let me know how you like it Vlad ๐Ÿ™

Beyond Code (AJ ONeal) profil fotoฤŸrafฤฑ
Beyond Code (AJ ONeal)7 ay รถnce

@tailwindcss @shadcn No class needed. <label> <input ... /> </label> HTML solved this problem long before anyone even had it. I think this knowledge was temporarily lost when the aria bros gave everyone divitis, but... This is the way.

Jake ๐ŸŽ‰ profil fotoฤŸrafฤฑ
Jake ๐ŸŽ‰7 ay รถnce

@tailwindcss @shadcn <label> there u go

Jeff Rosen profil fotoฤŸrafฤฑ
Jeff Rosen7 ay รถnce

@tailwindcss @shadcn Nice. Link to repository?

Dilshod profil fotoฤŸrafฤฑ
Dilshod7 ay รถnce

@tailwindcss @shadcn nice one! what did you use for the video ๐Ÿ‘€?

kian bazza profil fotoฤŸrafฤฑ
kian bazza7 ay รถnce

@tailwindcss @shadcn I made a custom playground component to visualize & animate the hit areas (see below, pls forgive the spacing -- just prompted it quickly and didn't clean up) Then recorded each clip and inserted them into DaVinci Resolve

Dilshod profil fotoฤŸrafฤฑ
Dilshod7 ay รถnce

@tailwindcss @shadcn Insane!

Vicente Sanchez profil fotoฤŸrafฤฑ
Vicente Sanchez7 ay รถnce

@tailwindcss @shadcn crazy good

kian bazza profil fotoฤŸrafฤฑ
kian bazza7 ay รถnce

@tailwindcss @shadcn Thanks Vicente ๐Ÿ™

Matt Popovich profil fotoฤŸrafฤฑ
Matt Popovich7 ay รถnce

@tailwindcss @shadcn Damn this is dope

kian bazza profil fotoฤŸrafฤฑ
kian bazza7 ay รถnce

@tailwindcss @shadcn Thanks Matt ๐Ÿ™

Saul profil fotoฤŸrafฤฑ
Saul7 ay รถnce

@tailwindcss @shadcn This is such a great utility. Immediately adding this

kian bazza profil fotoฤŸrafฤฑ
kian bazza7 ay รถnce

@tailwindcss @shadcn Appreciate that Saul, lmk if you run into any issues

pedro costa โ€” oss/acc profil fotoฤŸrafฤฑ
pedro costa โ€” oss/acc7 ay รถnce

@tailwindcss @shadcn really cool!

kian bazza profil fotoฤŸrafฤฑ
kian bazza7 ay รถnce

@tailwindcss @shadcn Thank you Pedro ๐Ÿ’ช

Luis H. Ball Jr. profil fotoฤŸrafฤฑ
Luis H. Ball Jr.7 ay รถnce

@tailwindcss @shadcn Heck yes, been wanting something like this ๐Ÿ™๐Ÿป

kian bazza profil fotoฤŸrafฤฑ
kian bazza7 ay รถnce

@tailwindcss @shadcn Glad this was helpful!

Vu Nguyen profil fotoฤŸrafฤฑ
Vu Nguyen7 ay รถnce

@shadcn @tailwindcss looks clean! thank you

kian bazza profil fotoฤŸrafฤฑ
kian bazza7 ay รถnce

@shadcn @tailwindcss Thanks Vu, appreciate it!

Radhi profil fotoฤŸrafฤฑ
Radhi7 ay รถnce

@shadcn @tailwindcss Any particular reason why you wanted it as a shadcn registry instead of tailwind plugin?

kian bazza profil fotoฤŸrafฤฑ
kian bazza7 ay รถnce

@shadcn @tailwindcss my understanding was tailwind plugins are "legacy" cc @adamwathan

Lenni profil fotoฤŸrafฤฑ
Lenni7 ay รถnce

@tailwindcss @shadcn You're the man

Manar Benkraouda profil fotoฤŸrafฤฑ
Manar Benkraouda7 ay รถnce

@tailwindcss @shadcn why didn't you call it hitbox ๐Ÿ˜ญ๐Ÿ˜ญ๐Ÿ˜ญ (amazing job though)

Jarod profil fotoฤŸrafฤฑ
Jarod7 ay รถnce

@shadcn @tailwindcss Omg I was just thinking about making this, thank you for saving my tokens

kian bazza profil fotoฤŸrafฤฑ
kian bazza7 ay รถnce

@shadcn @tailwindcss Hahaha love it when that happens Let me know how it goes

Igor bedesqui profil fotoฤŸrafฤฑ
Igor bedesqui7 ay รถnce

@tailwindcss @shadcn so nice

andrw profil fotoฤŸrafฤฑ
andrw7 ay รถnce

@tailwindcss @shadcn why donโ€™t just use a <label/> ? genuine question

Deckard profil fotoฤŸrafฤฑ
Deckard7 ay รถnce

@shadcn @tailwindcss Immediately installing this, thank you ๐Ÿ™

kian bazza profil fotoฤŸrafฤฑ
kian bazza7 ay รถnce

@deckard_the_dev @shadcn @tailwindcss Thanks Deckard, lmk how it goes!

Hakimuddin K profil fotoฤŸrafฤฑ
Hakimuddin K7 ay รถnce

@tailwindcss @shadcn We missed bazza.

KTibow profil fotoฤŸrafฤฑ
KTibow7 ay รถnce

@tailwindcss @shadcn this example is terrible, the whole row should be a <label>

kian bazza profil fotoฤŸrafฤฑ
kian bazza7 ay รถnce

@anametolast @tailwindcss @shadcn you mean the whole cell, right? lol

KTibow profil fotoฤŸrafฤฑ
KTibow7 ay รถnce

@tailwindcss @shadcn it's better to make the whole row a label if you can (but of course if you're using literal <table> you can't do that)

Rohit profil fotoฤŸrafฤฑ
Rohit7 ay รถnce

@tailwindcss @shadcn goat video, btw love ur crafts ๐Ÿ˜™๐ŸคŒ

Nathan profil fotoฤŸrafฤฑ
Nathan7 ay รถnce

@shadcn @tailwindcss Nice

kian bazza profil fotoฤŸrafฤฑ
kian bazza7 ay รถnce

@shadcn @tailwindcss Thanks Nathan ๐Ÿ™

Ajinkya profil fotoฤŸrafฤฑ
Ajinkya7 ay รถnce

@shadcn @tailwindcss @ishartwt need this on the scrollbar in timeline

Stammy profil fotoฤŸrafฤฑ
Stammy7 ay รถnce

@tailwindcss @shadcn nice work!

qualk ๐ŸŒฒ๐Ÿช“๐Ÿชง๐Ÿฆญ profil fotoฤŸrafฤฑ
qualk ๐ŸŒฒ๐Ÿช“๐Ÿชง๐Ÿฆญ7 ay รถnce

@tailwindcss @shadcn im sold

Szymon Krzemiล„ski profil fotoฤŸrafฤฑ
Szymon Krzemiล„ski7 ay รถnce

@tailwindcss @shadcn Does this work with slider handles?

Benzer Videolar