Skip to content
Forms

RadioSphere

A real radio group where one glossy sphere rolls from the old pick into the new one. Arrow keys work like any native radio group.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
options{ value, label, hint?, disabled? }[]—Choices. hint = small text under the label.
labelstring—Group name above the choices.
valuestring—Picked value (controlled).
defaultValuestring—Picked value at start (uncontrolled).
onChange(value: string) => void—Called with the new value.
namestring—Form field name.
accentstring"#a78bfa"Sphere and ring colour.
classNamestring"w-full max-w-xs"Wrapper look.