@makeform/radio
v3.2.0
Published
Radio style widget for users to make one single choice between multiple options.
Downloads
630
Readme
@makeform/radio
Radio style widget for users to make one single choice between multiple options.
Configs
values: Array of string/objects for options in this widget.- when object is used, it contains following fields:
value: actual value pickedlabel: text shown for user to selectenabled: defaulttrue. when set tofalse, the option is grayed out and cannot be selected.- if the option is already selected, it remains visually checked but still cannot be interacted with.
- when object is used, it contains following fields:
other: default null. An object for config ofotheroption, with following fields:enabled: default false. shouldotheroption be shown.prompt: default其它orOther. Prompt text forotheroption.
layout: defaultinline. decide how to layout options. possible values: eitherinlineorblock.
License
MIT
