Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

How to transform a shadcn switch into a pricing toggle ↓

109,133 Aufrufe • vor 1 Jahr •via X (Twitter)

8 Kommentare

Profilbild von Pasquale Vitiello
Pasquale Vitiellovor 1 Jahr

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 👍

Profilbild von Yann Birba - 🦋 @yannbirba.fr
Yann Birba - 🦋 @yannbirba.frvor 1 Jahr

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

Profilbild von LioRael
LioRaelvor 1 Jahr

@shadcn why not tabs?

Profilbild von Fabrizio Calderan
Fabrizio Calderanvor 1 Jahr

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

Profilbild von Soham Dasgupta 🇮🇳⚽
Soham Dasgupta 🇮🇳⚽vor 1 Jahr

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

Profilbild von Sergiu 🤖 AI Directories
Sergiu 🤖 AI Directoriesvor 1 Jahr

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

Profilbild von Mike Majara
Mike Majaravor 1 Jahr

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

Profilbild von alex
alexvor 1 Jahr

@shadcn this is neat but don't do this

Ähnliche Videos

How to transform yourself into Catwoman
1:59

Sensitive content

How to transform yourself into Catwoman

yuzupyon

23,795 Aufrufe • vor 10 Monaten