Загрузка видео...
Не удалось загрузить видео
How to transform a shadcn switch into a pricing toggle ↓
109,133 просмотров • 1 год назад •via X (Twitter)
Комментарии: 8

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 👍

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

@shadcn why not tabs?

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

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

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

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

@shadcn this is neat but don't do this
Похожие видео
Sensitive content
How to transform yourself into Catwoman
yuzupyon
23,795 просмотров • 10 месяцев назад
Sensitive content
A Japanese man spent $20,000 to transform himself into a border collie.
Modern History 𝕏
60,578 просмотров • 9 месяцев назад
