I don't think it's supported with the OOTB options, but you can customize the component and leverage the methods such isKeyAnOptGroup[0] to identify an optgroup or option values.
I don't think it's supported with the OOTB options, but you can customize the component and leverage the methods such isKeyAnOptGroup[0] to identify an optgroup or option values.
Thanks for your reply, but base on my research, I think it's supported by AEM OOTB. The default group value should be "afOptGroupName". For example, an item configured as "afOptGroupName=Group Name" will be treated as an optgroup.