Building a Navigation Component with Variables

Building a Navigation Component with Variables

Building a Navigation Component with Variables

Alex White

Feb 6, 2022

Yellow Flower
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.

Article by:

Alex White

Alex White is the founder of Reached Potential, an SEO Agency based in Brisbane, Australia.

He has eight years of experience as an SEO Consultant and was recently hired by the Australian government for SEO training. Alex also owns the best-selling SEO course on Udemy and has taught SEO to over 100,000 students.

His work has been featured in Forbes, Entrepreneur, Agency Analytics, Wix, and numerous other reputable publications.

Article by:

Alex White

Alex White is the founder of Reached Potential, an SEO Agency based in Brisbane, Australia.

He has eight years of experience as an SEO Consultant and was recently hired by the Australian government for SEO training. Alex also owns the best-selling SEO course on Udemy and has taught SEO to over 100,000 students.

His work has been featured in Forbes, Entrepreneur, Agency Analytics, Wix, and numerous other reputable publications.

Article by:

Alex White

Alex White is the founder of Reached Potential, an SEO Agency based in Brisbane, Australia.

He has eight years of experience as an SEO Consultant and was recently hired by the Australian government for SEO training. Alex also owns the best-selling SEO course on Udemy and has taught SEO to over 100,000 students.

His work has been featured in Forbes, Entrepreneur, Agency Analytics, Wix, and numerous other reputable publications.

About

Reached Potential

Studio 10 Shoreditch Stables 138 Kingsland Rd Hoxton, London E2 8DY

020 3287 3638

hello@clickslice.co.uk

Privacy Policy

Term Of Services

Fulfilment policy

Careers

Popular Services

Ecommerce SEO

Shopify SEO

Woocommerce SEO

SEO Consultant

Google Ads Management

PPC Agency

Combined PPC and SEO

Digital Public Relations

Quick Links

Blog

Meet Our Founder

Our Approach

Sitemap

Reached Potential Reviews

Highly Rated

Copyright: © 2024 — Reached Potential. All Rights Reserved.

Company No. 10876199  |  VAT No.  278157959

About

Reached Potential

Studio 10 Shoreditch Stables 138 Kingsland Rd Hoxton, London E2 8DY

020 3287 3638

hello@clickslice.co.uk

Privacy Policy

Term Of Services

Fulfilment policy

Careers

Popular Services

Ecommerce SEO

Shopify SEO

Woocommerce SEO

SEO Consultant

Google Ads Management

PPC Agency

Combined PPC and SEO

Digital Public Relations

Quick Links

Blog

Meet Our Founder

Our Approach

Sitemap

Reached Potential Reviews

Highly Rated

Copyright: © 2024 — Reached Potential.

All Rights Reserved.

Company No. 10876199  |  VAT No.  278157959

About

Reached Potential

Studio 10 Shoreditch Stables 138 Kingsland Rd Hoxton, London E2 8DY

020 3287 3638

hello@clickslice.co.uk

Privacy Policy

Term Of Services

Fulfilment policy

Careers

Popular Services

Ecommerce SEO

Shopify SEO

Woocommerce SEO

SEO Consultant

Google Ads Management

PPC Agency

Combined PPC and SEO

Digital Public Relations

Quick Links

Blog

Meet Our Founder

Our Approach

Sitemap

Reached Potential Reviews

Highly Rated

Copyright: © 2024 — Reached Potential. All Rights Reserved.

Company No. 10876199  |  VAT No.  278157959