componentRef IRefObject<IChoiceGroupOption>
Optional callback to access the IChoiceGroup interface. Use this instead of ref for accessing the public methods and properties of the component.
focused boolean
Indicates if the ChoiceGroupOption should appear focused, visually
name string
This value is used to group each ChoiceGroupOption into the same logical ChoiceGroup
onBlur (ev: React.FocusEvent<HTMLElement>, props?: IChoiceGroupOption) => void
A callback for receiving a notification when the choice has lost focus.
onChange (evt?: React.FormEvent<HTMLElement | HTMLInputElement>, props?: IChoiceGroupOption) => void
A callback for receiving a notification when the choice has been changed.
onFocus (ev?: React.FocusEvent<HTMLElement | HTMLInputElement>, props?: IChoiceGroupOption) => void | undefined
A callback for receiving a notification when the choice has received focus.
required boolean
If true, it specifies that an option must be selected in the ChoiceGroup before submitting the form
theme ITheme
Theme (provided through customization.)
ariaLabelledBy string
ID of an element to use as the aria label for this ChoiceGroup.
componentRef IRefObject<IChoiceGroup>
Optional callback to access the IChoiceGroup interface. Use this instead of ref for accessing the public methods and properties of the component.
defaultSelectedKey string | number
The key of the option that will be initially checked.
label string
Descriptive label for the choice group.
onChange (ev?: React.FormEvent<HTMLElement | HTMLInputElement>, option?: IChoiceGroupOption) => void
A callback for receiving a notification when the choice has been changed.
onChanged (option: IChoiceGroupOption, evt?: React.FormEvent<HTMLElement | HTMLInputElement>) => void
Deprecated and will be removed by 07/17/2017. Use onChange
instead.
options IChoiceGroupOption[]
The options for the choice group.
selectedKey string | number
The key of the selected option. If you provide this, you must maintain selection state by observing onChange events and passing a new value in when changed.
styles IStyleFunctionOrObject<IChoiceGroupStyleProps, IChoiceGroupStyles>
Call to provide customized styling that will layer on top of the variant rules.
theme ITheme
Theme (provided through customization).