logoalt Hacker News

mastermedotoday at 8:16 AM3 repliesview on HN

The shadcn radio button in action: https://ui.shadcn.com/docs/components/radio-group


Replies

rpastuszaktoday at 9:43 AM

Protip: the space between the UI control and the label should be done using padding (or achieved via label nesting) so that the entire area is clickable.

    [ x ]   some long label
         ꜛꜛꜛ
         padding here, not margins or gaps
(clicking between the control and the label does nothing now)
show 1 reply
tobyhinloopentoday at 9:24 AM

Is this developed by these 10x developers I've heard about?

maelitotoday at 8:18 AM

This interactivity definitely adds a wow effect.

show 3 replies