Interface: RadioButtons
Description
Allows users to choose one item from a list of possible options.
See
- Radio button group element reference.
- This is an interactive component - see our guide to enabling interactivity.
Extends
Properties
action_id?
optional action_id: string;
@description: An identifier for this action. You can use this when you receive an interaction payload to
identify the source of the action. Should be unique
among all other action_id
s in the containing block. Maximum length for this field is 255 characters.
Inherited from
Defined in
confirm?
optional confirm: ConfirmationDialog;
Description
A Confirm object that defines an optional confirmation dialog after the element is interacted with.
Inherited from
Defined in
focus_on_load?
optional focus_on_load: boolean;
Description
Indicates whether the element will be set to auto focus within the
view
object. Only one element can be set to true
.
Defaults to false
.
Inherited from
Defined in
initial_option?
optional initial_option: Option;
Description
An Option object that exactly matches one of the options within options
. This option will
be selected when the radio button group initially loads.
Defined in
block-kit/block-elements.ts:575
options
options: Option[];
Description
An array of Option objects. A maximum of 10 options are allowed.
Defined in
block-kit/block-elements.ts:579
type
type: "radio_buttons";
Description
The type of element. In this case type
is always radio_buttons
.