How to Design an Interactive Dropdown in Figma | Beginners Tutorial

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello designers welcome back to another new video on our figma UI kit Series so if you're new here I would suggest you start with the first video on the series that'll give you a bit of a context on what we are doing here you'll find the link for that on the card somewhere on the top so if you have been following along with me so far then we are pretty good to go today I'm gonna show you how we can create interactive drop down Fields so let's get started first I'll show you a demo of the UI kit component that we created then we'll see uh what all options it has we'll see a quick demo of it and then we'll start building it from the scratch so without any further Ado let's jump straight onto my screen so as you can see this is the interactive UI kit that we created this is the drop down that we'll be creating we won't be creating it for all the options but we'll see to create it for two and then you can just replicate it for the other options as well right so let's just go to the demo playground here take a new frame so inside this we'll drop in the interactive drop down so here we have it I'll just drop it here align it to the center so once I click on it you can see there are multiple options on the right so the first one says the number of options so this basically allows you you to choose how many options that you want on your drop down so for example if I choose 4 now it is configured to have four options and you can give different option values here right so I can enter in silver gold diamond so I can given four values here and your drop down is basically set you can open the drop down and see the values in it so there's open and close you can hide or disable the label on the top so you can basically open and close it and see the different values in it now let's just close it play this one so as you can see we can click on this just select the option and it works seamlessly right so as you can see all I had to do was just select the number of options that I wanted given the values and I can straight away use this and I can duplicate this multiple times right I just have to select it and duplicate it and change the options and that will basically create a new drop down field for you so let's see how we can create this from the scratch right so here we have a fresh figma file where we just have some color styles on the right and nothing else so it's completely empty so first thing we'll take a frame so I'm just going to take a frame like this and I'm gonna paste an image in this which is just a reference that we can use so that we know what all elements we need to create the component so that we have an image here and then the first thing as you can see we need a label then we need a selector box with a Chevron icon in it and then we need the options that we have a list box at the bottom right so the first thing as you can see is we need a drop down label so I'm just going to take a text and call it drop down label and the next thing is we need a placeholder so I'm just going to duplicate this and we're going to call this as the select value okay and the next thing is we need the option so I'm going to call this as option one okay so we have everything we also need Chevron icon so I'm just going to copy it from the icons that I have handy so you can just use any plugin to get this like iconify or feather icons you can get it from anywhere so I already have this I'm just gonna place it right here so right now we have everything that we need for creating a simple drop down so the first thing we're going to do is Select both of these and add it to a frame or an auto layout so for that just right click add Auto layout or use the shortcut shift a and that will add these both into a photo layout and on the right we can start adding the paddings to the right and the left so I'm just going to add a 10 padding on both the sides but before that let's also add the stroke to it so that we have the box outside it so for the stroke I'm just gonna add a gray that I have here so we have applied the stroke and we're going to give it a bit of a rounded Corners at four radius we have this box around it let's increase the width of this one let's increase the width of this one to let's say 345 so I'll say 345 since we're creating this for the mobile so we already added padding to the left and the right let's add the padding for the top and the bottom as well so I'll just give it the same value here 10 on all the sides and we want the text to remain here and the Chevron to go to the right so for that we are going to go to the extra settings in Auto layout and in this we are going to change the spacing mode to let's say space between and that way these will get separated by equal space in between so now we have the basic component for the selector box ready and we have this option at the bottom so let's create the box for these options as well the list that we have below so same thing I'm just going to add this into an auto layout so that we could create the options so I'm just going to place it to the left here again and give it a stroke so I'm just going to give it the stroke so that we can create the separator line here and increase the width of this again the same thing 345 so we have created that and we want only the bottom line to come for this option right because we'll create another Auto layout where we'll give the border for the complete list so this one I'm just going to go to the stroke and I'm going to select the stroke per side so once I click on this I'm going to give it a stroke only at the bottom so this way this will act as a separator line giving it only a stroke at the bottom so we have this just duplicate this one and place it below it you can do a copy paste or command D to duplicate it and select both of these and now add it to another Auto layout right so right click I do an auto layout add Auto layout and for this one I'm going to give it the border the main border that we see here right so I go to stroke again and give it the neutral color of the stroke give it rounded Corners at 4 or there we go and we are going to make this clip content on so that whatever goes outside it is not visible so the advantage of using Auto layout for this list box is once you click on an option and start duplicating it the frame automatically adjusts and you don't have to worry about the separator lines or anything overflowing out of it right so that is how we can create this let me just put it back to two options right here and now I think we have everything set so you can see that the almost the basic structure is ready so now we'll add it into a frame and see how we can create the base component for this so for that I'm going to select both of these and add it into a frame so for that I'm just going to right click and say frame selection or you could use the shortcut option command and G so I'll click on this it frames it inside this and the reason I'm doing this is I want an option there where we can open and close the drop down right so we can show and state where it's open and close but how can we do that for that I'm going to place this Frame inside the frame that we just created right so just drag this into the frame that we just created so we have everything inside this particular frame so one once I turn on this clip content you can see how the bottom part gets hidden and it gets shown right so that is the reason I framed only these two elements so that this list is hidden always inside this and we just enable it and disable it using this clip content so I'll enable this one and now we basically have the base component ready where you can use this to create the multiple variants out of it right but before that let me just turn this flip it to the bottom so for that I can just right click and use the flip vertical option or just the shortcut that is shift V and now it gets flipped to the bottom so this is the right State we'll just remove this one and we'll make this a component so here we have the base command ready and we'll add variance to this so I'll click on this and add the second variant where we want the drop down to be open so for that I'll just simply turn off this clip content and your content is visible let me just increase the height of this Frame so as you can see we have a state where the drop down is open and one where it's closed so we need to create multiple properties for this like we saw in the UI kit so I'll select this drop down main component here and we'll add different properties right so the first property we want is the number of options so I'm going to change this to number of options so this will be a selector where we can say we want three options on the list or five options on the list or so on right so this will be the number of options and by default I want to give it a value of 2 for both these drop downs so I'm just going to select both of these drop downs and select the number of options to be two so this will act as a drop down where we have two options and the next thing we want is the state where it's open or closed right so for that I'm going to select this again add a new property and this will be a variant and we're going to call it as open and the value could be just open yes or no right so I'll just call the default value as yes so for the first one you can say that it is no and for the second one it gets defaulted to yes right so we have a very basic drop down component ready let's take another frame right here and see how this works so far so I'm just taking a frame going to assets we'll drop in the local component that we created aligning it to the center so right now we you can see we have two properties on the right one is the number of options we just created two so that you don't have any other option here and this one is an open and close toggle so as you can see when I enable it it gets open and if I turn it off it gets closed and now we have to create different properties for it one is the text value for the options and the next is two different variants for the different selected States right so for that first thing I'm going to select this and I'm going to add two more properties here so that will be your text this will be the option one and the value for it so option one just give it the same thing that is a text property same way I'm just gonna add two more for this so option two we'll give it the same thing and another one which says option three so now we have created the text properties so let's see how we can utilize it in the components so the next thing we want to do is create a new variant so I can just click on this and duplicate it like this or just use the plus option that we see here right so we want one here and another one as well because we have two options we gotta show that which is the state for each option selected so right now in this we have a small mistake here so once the state is open we want to flip the arrow as well so I'm just going to use the shortcut shift V and this turns to the top right so this looks good and then we have actually duplicated two variants here so the first variant will act as an option one is selected and the second variant we are going to use to show that this option two is selected right so in the first variant I'm just going to select the select value and we have a Content option here right so just choose this option here and we're going to select this as option one because here we are basically showing that option one is selected and the same thing in the second case we're going to select this select value and go to content and say option two so this is nothing but different stages so if the user selects option one we are going to change the state to this one and if the user selects option two we'll change the state to option two simple right so now that we have all the different variants that we need let's go ahead and add the interactions and see how this behaves for that I'm gonna go to the Prototype tab here and select the first variant here so just the Box because the user just will tap on the box here so I'll select the box right here and Link it to the next variant here right so on link instant everything looks good so in this case once the user clicks here the drop down will open and next when the user selects the option one we want to go to the stage where the option 1 is selected so I'll just select this option one here and click this one the settings are perfect the same case with option two so once the user clicks on option two take them to option two state so this one is perfect and once again once the user wants to open it they have to select this and it should open the drop down right so I'm gonna link this to the second state we have here same thing with this because the user can select multiple times I'm linking it to the second state so as far as I see everything looks perfect let's see how this is going to behave so I'm gonna go to the frame that we have on the right just gonna play this one right away so as you can see we have the drop down ready once I click on this the options are shown and I can select option two it works again click select option one and it works seamlessly right so that is how we can create the interactions for it but let's see what is the difference in the properties that we created so I click on the drop down here and as you can see I can open and close it there is some problem here right I think I'll have to just delete this add in the new component to see the option values as well so I just drop it here it still says there is some conflicting properties so let's try to resolve this so that is because uh probably in this we have not linked the options in the first variant so going back to the layers here we'll just turn on the clip content for now and select the option one we have to link all the contents to the options that we created so I'm going to select this select option one and this is going to be option two we'll just turn this off back again clip contents and we have selected this option one and this should be option two yeah so I think everything is selected there shouldn't be any conflict this time so I'm going back to the frame that we created here and as you can see uh we have two new options so the conflict is gone so here I can give the value so I'm just gonna give it as gold and I'll select this as silver and I can you know basically open this and check if the values are updated and I'll just close it so now if I play this one you can see that the values are updated and if I select it that is the one that gets selected perfect so now we have the option for the number of options for two let's see how we can add this to three and keep replicating it to the number of options that you will ever need for your design system or your UI kit so I'm just gonna duplicate all of these just use option and bring it to the right and we'll make the adjustments here so first thing is we want to select all of these and make sure we are selecting the number of options as three because all the variants that we are creating here should specifically work for only option number three so that is why I selected all of these and changed it to option number three okay and in this we are going to basically add one more option so I'm just going to duplicate it select this one and make this option three right so I'm going to select this make this option three and the same thing here we have to do so I'm just gonna expand this select the option inside this duplicate it select the content inside it and make sure this is selected to option three so the changes on this one is done as well so I'll turn the clip content off so those both are ready and then we'll have to need one more variant here which is basically the option three selected stage so option one and option two is work perfect just select this one and change this to option three so now I think everything is set all we have to do is just add the extra interactions because we added a new variant here so I go back to prototype Tab and option one and option two are selected just select the option three and Link it to this one before that make sure you remove the action that it already has so I'll just remove the interactions that were already there we'll link this to option number three with on click instant everything fine and this one should be selected and go back to the open state which is perfect I think everything else looks good so let's see how this works now so I go back to the frame that we have here select this one and I'll change the number of options to three so as you can see a new Option gets added here and we're gonna call this as Platinum okay and if I open this you can see that the options are updated I can close this just go to the play mode and now I have 3 three options I can select anything and it just works perfectly right so this is perfect and as you can see I can just you know use this multiple times as well so if I duplicate this one and for one I can have just two options and for the other I can have three options and let's see how this works so you can see that there is a bit of overlap here how to fix that just go back to your components and just add a fill for this one right so right now it's empty and that is why we are facing that issue just add a wide fill to this for this one as well just adding a white fill and this issue should get fixed let's see it's still not fixed and that is because our layer here is not on top of this so make sure your layer on the top is always above the layer at the bottom so I just placed it on the top and now your issue is fixed right so now you don't see that issue and now I can select it and this one I can select the one with three options as you can see I'm just using the same component but I can use it multiple number of times without you know duplicating all the interactive components and stuff like that so this is a very good approach of creating drop downs where you can use multiple times in your designs without having to go into your components and change stuff all the features that you need is always present at the right select the number of options select the state and give the different option values here and you're good to go so that's it for this video guys I hope you found this helpful and in our next video we're gonna see how we can create an interactive radio button so that will be our next video as always thanks for watching and I'll catch you in the next one [Music] foreign foreign
Info
Channel: Design Xstream
Views: 13,473
Rating: undefined out of 5
Keywords: Figma for beginners, Interactive dropdown design, Learning UI/UX design, Step-by-step Figma guide, Creating interactive components, Figma dropdown tutorial, UI/UX design tutorials, Beginner's guide to Figma, Figma design process, Making interactive dropdown, Figma interactive elements, Figma component tutorial, Introduction to UI/UX with Figma, How to create dropdown in Figma, Understanding interactive design in Figma, dropdowns, clickable dropdown
Id: Xit-5MFHM88
Channel Id: undefined
Length: 15min 37sec (937 seconds)
Published: Thu Jun 15 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.