Welcome UI logo
FOUNDATIONSCOMPONENTSBLOG650+
10.0.1

Menu

    Actions

    • Button
    • ButtonGroup
    • Close Button
    • Link

    Data display

    • Accordion
    • Avatar
    • Badge
    • Card
    • Swiper
    • Table
    • Tag
    • VisuallyHidden

    Feedback

    • Alert
    • StickyNote

      NEW

    • Toast

    Forms

    • Checkbox
    • DatePicker
    • DateTimePicker
    • Field
    • FileDrop
    • FileUpload
    • Hint
    • InputText
    • Label
    • PasswordInput
    • Radio
    • RadioGroup
    • RadioTab
    • Search
    • Select
    • Slider
    • Textarea
    • TimePicker
    • Toggle

    Icons & logo

    • Icon
    • IconStamp

      NEW

    • Logo
    • VariantIcon
    • WelcomeLoader

    Layout

    • AspectRatio
    • Loader
    • Window

      NEW

    Navigation

    • Breadcrumb
    • DropdownMenu
    • Pagination
    • Stepper

      NEW

    • Tabs

    Overlay

    • Drawer
    • Modal
    • Popover
    • Tooltip

    Typography

    • Text

    Utilities

    • Grid background

Overview

Props

RadioGroup

dataTestId
string
disabled
Boolean
hideLabel
Boolean
label
Required
string
number
false
true
ReactElement<any, string | JSXElementConstructor<any>>
Iterable<ReactNode>
ReactPortal
name
Required
string
onChange
FormEventHandler<HTMLFieldSetElement>
(value: string | number) => void
options
[] (default)
RadioGroupOption[]
renderOption
forwardRef<HTMLInputElement, RadioProps>( ( { className, dataTestId, disabled, hint, label, onChange, onClick, value, variant = 'default', ...rest }, ref ) => { const handleClick = (event: React.MouseEvent<HTMLLabelElement>) => { event.stopPropagation() if (onClick) onClick(event) if (onChange) onChange(event) } return ( <Label className={cx('root', className)} onClick={handleClick}> <div className={cx('input-wrapper')}> <AriakitRadio aria-label={label} className={cx('input', `variant-${variant}`)} data-testid={dataTestId} disabled={disabled} ref={ref} value={value} {...rest} /> </div> {label ? ( <div className={cx('label-with-hint')}> <div data-testid={dataTestId ? `${dataTestId}-label` : undefined}>{label}</div> {hint ? ( <Hint className={cx('hint')} data-testid={dataTestId ? `${dataTestId}-hint` : undefined} > {hint} </Hint> ) : null} </div> ) : null} </Label> ) } ) (default)
symbol
object
label
a
abbr
address
area
article
aside
audio
b
base
bdi
bdo
big
blockquote
body
br
button
canvas
caption
center
cite
code
col
colgroup
data
datalist
dd
del
details
dfn
dialog
div
dl
dt
em
embed
fieldset
figcaption
figure
footer
form
h1
h2
h3
h4
h5
h6
head
header
hgroup
hr
html
i
iframe
img
input
ins
kbd
keygen
legend
li
link
main
map
mark
menu
menuitem
meta
meter
nav
noindex
noscript
ol
optgroup
option
output
p
param
picture
pre
progress
q
rp
rt
ruby
s
samp
search
slot
script
section
select
small
source
span
strong
style
sub
summary
sup
table
template
tbody
td
textarea
tfoot
th
thead
time
title
tr
track
u
ul
var
video
wbr
webview
svg
animate
animateMotion
animateTransform
circle
clipPath
defs
desc
ellipse
feBlend
feColorMatrix
feComponentTransfer
feComposite
feConvolveMatrix
feDiffuseLighting
feDisplacementMap
feDistantLight
feDropShadow
feFlood
feFuncA
feFuncB
feFuncG
feFuncR
feGaussianBlur
feImage
feMerge
feMergeNode
feMorphology
feOffset
fePointLight
feSpecularLighting
feSpotLight
feTile
feTurbulence
filter
foreignObject
g
image
line
linearGradient
marker
mask
metadata
mpath
path
pattern
polygon
polyline
radialGradient
rect
set
stop
switch
text
textPath
tspan
use
view
ComponentClass<any, any>
FunctionComponent<any>
required
Boolean
value
string

On this page

  • RadioGroup
    • dataTestId
    • disabled
    • hideLabel
    • label
    • name
    • onChange
    • options
    • renderOption
    • required
    • value
Made with by
Welcome to the jungle logo

Documentations

  • Foundations
  • Components
  • Source code

Updates

  • Releases
  • Issues

Community

  • Github
  • Twitter
  • Medium
  • Jobs