CMB2 Buttonset field type. Ready to integrated with a theme
buttonset
as a field type.
array(
'name' => __( ' Position', 'cmb2' ),Title
'id' => $prefix . 'buttonset',
'type' => 'buttonset',
'options' => array(
"" => __("Default", 'cmb2'),
"left" => __("Left", 'cmb2'),
"center" => __("Center", 'cmb2'),
"right" => __("Right", 'cmb2')
),
'default' => 'none',
)
http://www.proy.info/how-to-create-cmb2-buttonset-field-type/