You can add styles directly via the acf_register_block_type() function like so:
acf_register_block_type( [
'name' => '',
'title' => '',
'description' => '',
'render_callback' => '',
'category' => 'formatting',
'icon' => '',
'mode' => '',
'keywords' => [],
'supports' => [],
'styles' => [
[
'name' => 'light',
'label' => __('Light', 'abc'),
'isDefault' => true,
],
[
'name' => 'medium',
'label' => __('Medium', 'abc'),
],
[
'name' => 'dark',
'label' => __('Dark', 'abc'),
]
],
]);
Would love that too. Did you ever find a way?
Hello,
I ran into the exact same problem. Did you ever find a solution for this?
Those hidden input ids should probably be prefixed with the form id, but they are not…
Any help or suggestions to a workaround would be greatly appreciated.