• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
4

Tutorial : A quicker (?) way to create checkboxes in XD

Adobe Employee ,
Nov 15, 2019 Nov 15, 2019

Copy link to clipboard

Copied

If you found my previous tutorial on creating a checkbox using states a tad cumbersome, I found something simpler that works. Now, this may not be ideal or recommended but it works for me, and if you think you want to try it, jump in!

 

Create a square (I have used Corner radius: 20, Stroke 4)

Screen Shot 2019-11-15 at 6.59.35 AM.png

Convert the box to a component by using Cmd+K or using the right-click menu. This is your Default state, a blank Check Box. Rename this component to Check Box.

 

Screen Shot 2019-11-15 at 3.58.48 PM.png

Create 2 new states for the component – MouseHover, and MouseClick.

Screen Shot 2019-11-15 at 4.00.30 PM.png

Open the Icons & Symbols plug-in and drag the icons for check and user-check on to the stage. Resize them to a bigger size that fits into the check box.

Screen Shot 2019-11-14 at 3.54.06 PM.png

This is where it gets a little tricky. With Default State selected, move the Check icon into the Check Box Component.

Screen Shot 2019-11-15 at 4.15.39 PM.png

Right-click the Check icon and select Cut.

Screen Shot 2019-11-15 at 4.10.42 PM.png

Open the Layers panel, click on the icon to the left of the Check Box component to expand it. Select Rectangle.

Screen Shot 2019-11-15 at 4.12.30 PM.png

Now press Cmd+V or Ctrl+V to paste the Check Icon into the rectangle. Your layers panel should now look like this.

Screen Shot 2019-11-15 at 5.02.58 PM.png

Remove the Fill from the Check icon so that it is now invisible

Repeat the process for the User Check icon. Your layer panel should now look like this.

Screen Shot 2019-11-15 at 4.19.31 PM.png

Just to be sure, you now have an empty rectangle in the Default State with two objects inside that are invisible.

Now, select the Check Box component, switch to the MouseHover state, and select the User-check icon in the layers panel. Enable Fill.

user_check_enabled.png

Select the Check Box component, switch to the MouseClick state, and select the Check icon in the layers panel. Enable Fill.

check_icon_enabled.png

Switch to the Prototype Mode, and wire the states as described in the images below.

mouseclick_wired1.png

 

mousehover_wired1.png

 

defaultstate_wired1.png

 

Let me know if you have a better idea on how we could achieve the creation of a checkbox. I look forward to your entries.

TOPICS
How to

Views

1.5K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 05, 2020 Feb 05, 2020

Copy link to clipboard

Copied

LATEST

Great tutorial, thanks! If I find an easier way, I will let you know 🙂 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines