JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.7/themes/start/jquery-ui.css">
  <title>Test</title>
  <body>
    <div>
        <div style="float: left;" id="radio">
          <input type="radio" id="radio1" name="radio" value="1"/><label for="radio1">Choice 1</label>
          <input type="radio" id="radio2" name="radio" value="2"/><label for="radio2">Choice 2</label>
          <input type="radio" id="radio3" name="radio" value="3"/><label for="radio3">Choice 3</label>
        </div>
        <div style="float: left;" id="checkbox">
          <input type="checkbox" id="check1" name="check" value="1"/><label for="check1">Choice 1</label>
          <input type="checkbox" id="check2" name="check" value="2"/><label for="check2">Choice 2</label>
          <input type="checkbox" id="check3" name="check" value="3"/><label for="check3">Choice 3</label>
        </div>
    </div>
  </body>

CSS

body{ font: 70% "Trebuchet MS", sans-serif; margin: 50px;}

JavaScript

(function( $ ){
//plugin buttonset vertical
$.fn.buttonsetv = function() {
  $(':radio, :checkbox', this).wrap('<div style="margin: 1px"/>');
  $(this).buttonset();
  $('label:first', this).removeClass('ui-corner-left').addClass('ui-corner-top');
  $('label:last', this).removeClass('ui-corner-right').addClass('ui-corner-bottom');
  mw = 0; // max witdh
  $('label', this).each(function(index){
     w = $(this).width();
     if (w > mw) mw = w; 
  })
  $('label', this).each(function(index){
    $(this).width(mw);
  })
};
})( jQuery );

  $(document).ready(function(){
    //call plugin 
    $("#radio").buttonsetv();
    $("#checkbox").buttonsetv();
  });