AI Lifestyle

Building a Navigation Component with Variables

As the internet continues to develop and grow exponentially, jobs related to the industry do too, particularly those that relate to web design and development.

Feb 6, 2022

James Walker

Yellow Flower
Yellow Flower

Navigation is key within any digital interface. Smart Components enable us to create custom interactive navigation components that work perfectly with the rest of your prototype.In this guide, we will cover the concepts of nesting components, adding events to elements in a component using Event Variables, and passing these through your components. One of the main benefits of using nested components is that it provides full control over its states, such as unique hover states of elements within another component.

Starting at the atomic level

Framer allows you to create fully interactive and animated components, and even allows you to nest components within other components. We’re building a navigation bar component for a website that will contain two different kinds of nested components, with their own unique interactions. Our project will contain a Navigation bar that contains various nested components, namely five Nav items and one Shopping cart component. The design of our nested components, the nav list item and the shopping cart, will impact how we design our navigation bar. For this reason, an optimal workflow includes starting with the 'deepest' nested component and building up from there.

Nesting components

Once we have our two components ready, we can start creating the component in which we will nest these. Draw your navigation bar, select it on the canvas and click the Component tool in the Toolbar. To nest a different component in our new component, just drag any other component to the Component Canvas and place it within your designed navigation bar.

Triggering interactions from the navigation bar

Back on the main canvas, we’d like to be able to tap 'Clothing' and navigate to an entire new Screen. If you’d connect the component using the Prototyping Connector to a new screen, we could set up an Interaction. However, this would be triggered if we tap anywhere within our component. This isn’t what we want to do, as we want to trigger this transition only from a specific element. This is where Event Variables come in, which are special types of Variables not attached to properties (like opacity or fill) but instead to events.

Jelix acknowledges the Gadigal people of the Eora Nation as the Traditional Custodians of the Country we work and live on, and recognise their continuing connection to the land and waters. We pay our respects to Elders past, present, and emerging, and extend that respect to all First Nations people.

© 2023 Jelix Ventures.

Jelix Ventures Management Company Pty Ltd (ABN 60 613 582 773) is a Corporate Authorised Representative (No. 001281193) of Shell Cove Capital Management Ltd (ACN 107 290 335) Australian Financial Licence No 247143. Any advice provided by Jelix is without taking account of your objectives, financial situation and needs. Jelix is authorised to provide financial services to wholesale or sophisticated investors only. Potential investors should do their own due diligence and make their own investment decisions, consulting with licensed legal professionals and investment advisors for legal, tax, insurance, or investment advice. Jelix Ventures Management Company Pty Ltd (CAR of AFS Licence No 247143) and related entities and each of their respective directors, officers and agents ("Jelix") believe that the information contained in this page and its attachments have been obtained from reliable sources and that any estimates, opinions, conclusions or recommendations are reasonably held at the time of compilation. No warranty is made as to the accuracy of the information in this page and, to the maximum extent permitted by law, Jelix disclaims all liability for any loss or damage which may be suffered by any recipient through relying on anything contained or omitted from this page. Jelix does not warrant the attached files are free from computer viruses or other defects and is provided on the basis that the user assumes all responsibility for any loss, damage or consequence resulting from use.

Jelix acknowledges the Gadigal people of the Eora Nation as the Traditional Custodians of the Country we work and live on, and recognise their continuing connection to the land and waters. We pay our respects to Elders past, present, and emerging, and extend that respect to all First Nations people.

© 2023 Jelix Ventures.

Jelix Ventures Management Company Pty Ltd (ABN 60 613 582 773) is a Corporate Authorised Representative (No. 001281193) of Shell Cove Capital Management Ltd (ACN 107 290 335) Australian Financial Licence No 247143. Any advice provided by Jelix is without taking account of your objectives, financial situation and needs. Jelix is authorised to provide financial services to wholesale or sophisticated investors only. Potential investors should do their own due diligence and make their own investment decisions, consulting with licensed legal professionals and investment advisors for legal, tax, insurance, or investment advice. Jelix Ventures Management Company Pty Ltd (CAR of AFS Licence No 247143) and related entities and each of their respective directors, officers and agents ("Jelix") believe that the information contained in this page and its attachments have been obtained from reliable sources and that any estimates, opinions, conclusions or recommendations are reasonably held at the time of compilation. No warranty is made as to the accuracy of the information in this page and, to the maximum extent permitted by law, Jelix disclaims all liability for any loss or damage which may be suffered by any recipient through relying on anything contained or omitted from this page. Jelix does not warrant the attached files are free from computer viruses or other defects and is provided on the basis that the user assumes all responsibility for any loss, damage or consequence resulting from use.

Jelix acknowledges the Gadigal people of the Eora Nation as the Traditional Custodians of the Country we work and live on, and recognise their continuing connection to the land and waters. We pay our respects to Elders past, present, and emerging, and extend that respect to all First Nations people.

© 2023 Jelix Ventures.

Jelix Ventures Management Company Pty Ltd (ABN 60 613 582 773) is a Corporate Authorised Representative (No. 001281193) of Shell Cove Capital Management Ltd (ACN 107 290 335) Australian Financial Licence No 247143. Any advice provided by Jelix is without taking account of your objectives, financial situation and needs. Jelix is authorised to provide financial services to wholesale or sophisticated investors only. Potential investors should do their own due diligence and make their own investment decisions, consulting with licensed legal professionals and investment advisors for legal, tax, insurance, or investment advice. Jelix Ventures Management Company Pty Ltd (CAR of AFS Licence No 247143) and related entities and each of their respective directors, officers and agents ("Jelix") believe that the information contained in this page and its attachments have been obtained from reliable sources and that any estimates, opinions, conclusions or recommendations are reasonably held at the time of compilation. No warranty is made as to the accuracy of the information in this page and, to the maximum extent permitted by law, Jelix disclaims all liability for any loss or damage which may be suffered by any recipient through relying on anything contained or omitted from this page. Jelix does not warrant the attached files are free from computer viruses or other defects and is provided on the basis that the user assumes all responsibility for any loss, damage or consequence resulting from use.