I'm doing some UI mockups in Draw.io and I was wanting to customize the appearance of some of the built-in shapes.

I'm using the Checkbox shape from the Mockup Forms library and it is not checked by default; I would like to check it.

Similarly, the Checkboxes shape is a box containing 4 checkboxes, the 3rd one being checked:

  1. How can I change the checked item to be the first item?
  2. How can I add or remove other checkboxes to this list?

With the shape you mentioned: select the checked sub-shape and paste it where you want it (replace the empty rectangle) or use a different shape which can be manipulated via style (create a simple rectangle then copy the following text into its style): "shape=mxgraph.mockup.forms.checkboxGroup;mainText=+Option 1,Option 2,Option 3,Option 4;textSize=10;textColor=#dddddd;fontColor=#666666;"

The "Option n" text can be whatever you want and add a "+" whick you want to be checked. You can also add or remove entries to the mainText list. The other parameters should be obvious. If you want further help, just ask.

The same applies to radio buttons, just use the "mxgraph.mockup.forms.radioGroup" shape.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.