Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

How to transform a shadcn switch into a pricing toggle ↓

109,133 görüntüleme • 1 yıl önce •via X (Twitter)

8 Yorum

Pasquale Vitiello profil fotoğrafı
Pasquale Vitiello1 yıl önce

Things got a bit lively on this one 😀 @yann_birba, you’re right—using a switch probably wasn’t the best call for a pricing toggle, especially since switches typically show two states of the same thing (like “Lights On/Off”) rather than two distinct options. Thank you all for your feedback; I appreciate your input 👍

Yann Birba - 🦋 @yannbirba.fr profil fotoğrafı
Yann Birba - 🦋 @yannbirba.fr1 yıl önce

@shadcn For accessibility concerns. I think it's simple radio inputs. Not a switch. Switch must be used to toggle something not choose between 2 values.

LioRael profil fotoğrafı
LioRael1 yıl önce

@shadcn why not tabs?

Fabrizio Calderan profil fotoğrafı
Fabrizio Calderan1 yıl önce

@shadcn A no-tailwind and more accessible version with radioboxes

Soham Dasgupta 🇮🇳⚽ profil fotoğrafı
Soham Dasgupta 🇮🇳⚽1 yıl önce

@shadcn After watching this, I can confidently say that I don't know how to use Tailwind! 🤷‍♂️

Sergiu 🤖 AI Directories profil fotoğrafı
Sergiu 🤖 AI Directories1 yıl önce

@shadcn I wish I could code like this. I’m more like… Cursor, now I want the button on the left. 😂

Mike Majara profil fotoğrafı
Mike Majara1 yıl önce

@shadcn Cool stuff!! It's actually been a while since I see a human coding. Looks vintage

alex profil fotoğrafı
alex1 yıl önce

@shadcn this is neat but don't do this

Benzer Videolar

How to transform yourself into Catwoman
1:59

Sensitive content

How to transform yourself into Catwoman

yuzupyon

23,795 görüntüleme • 10 ay önce