Building a Navigation Component with Variables

February 6, 2022

3 mins

Building a Navigation Component with Variables

Matt Mielnicki

Managing Director

Web design

Marketing

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

Matt Mielnicki

Managing Director

Web design

Marketing

Next Article

Services that bring your brand story to life

  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen

We design and develop fully customized, mobile-responsive websites tailored specifically for small companies

Tools we use…

  • Logos

  • Iconography

  • Color design

    #8D6D75

    #FDF0D5

    #E6E6E6

    #D8CACA

    #C1121F

  • Typography

    AaBbCc

    Satoshi

    AaBbCc

    Playfair Display

  • and
    more

We build cohesive visual and verbal identities that communicate your company's unique strengths

Tools we use…

Our proven SEO strategies put your firm at the top of local and industry-specific search results

  • Keyword Research

  • Technical SEO

  • On-page SEO

  • SEO Audits & Reporting

  • Competitor Analysis

  • Link Building

  • Content Strategy

  • Search Intent Mapping

  • Keyword Gap

  • SEO-friendly Copywriting

  • Meta Tags

  • Content Formatting

  • A/B Testing

  • Site Speed Optimization

  • Heatmaps

  • GA4 Setup

  • GSC Integration

  • KPI Analysis

  • SERP Benchmarking

  • Regular Content Updates

  • XML Sitemap Creation

  • Guest Posting

Tools we use…

Services that bring your
brand story to life

  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen

We design and develop fully customized, mobile-responsive websites tailored specifically for small companies

Tools we use…

  • Logos

  • Iconography

  • Color design

    #8D6D75

    #FDF0D5

    #E6E6E6

    #D8CACA

    #C1121F

  • Typography

    AaBbCc

    Satoshi

    AaBbCc

    Playfair Display

  • and
    more

We build cohesive visual and verbal identities that communicate your company's unique strengths

Tools we use…

Our proven SEO strategies put your firm at the top of local and industry-specific search results

  • Keyword Research

  • Technical SEO

  • On-page SEO

  • SEO Audits & Reporting

  • Competitor Analysis

  • Link Building

  • Content Strategy

  • Search Intent Mapping

  • Keyword Gap

  • SEO-friendly Copywriting

  • Meta Tags

  • Content Formatting

  • A/B Testing

  • Site Speed Optimization

  • Heatmaps

  • GA4 Setup

  • GSC Integration

  • KPI Analysis

  • SERP Benchmarking

  • Regular Content Updates

  • XML Sitemap Creation

  • Guest Posting

Tools we use…

Services that bring your brand story to life

  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen

We design and develop fully customized, mobile-responsive websites tailored specifically for small companies

Tools we use…

  • Logos

  • Iconography

  • Color design

    #8D6D75

    #FDF0D5

    #E6E6E6

    #D8CACA

    #C1121F

  • Typography

    AaBbCc

    Satoshi

    AaBbCc

    Playfair Display

  • and
    more

We build cohesive visual and verbal identities that communicate your company's unique strengths

Tools we use…

Our proven SEO strategies put your firm at the top of local and industry-specific search results

  • Keyword Research

  • Technical SEO

  • On-page SEO

  • SEO Audits & Reporting

  • Competitor Analysis

  • Link Building

  • Content Strategy

  • Search Intent Mapping

  • Keyword Gap

  • SEO-friendly Copywriting

  • Meta Tags

  • Content Formatting

  • A/B Testing

  • Site Speed Optimization

  • Heatmaps

  • GA4 Setup

  • GSC Integration

  • KPI Analysis

  • SERP Benchmarking

  • Regular Content Updates

  • XML Sitemap Creation

  • Guest Posting

Tools we use…

Services that bring your brand story to life

  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen
  • screen

We design and develop fully customized, mobile-responsive websites tailored specifically for small companies

Tools we use…

  • Logos

  • Iconography

  • Color design

    #8D6D75

    #FDF0D5

    #E6E6E6

    #D8CACA

    #C1121F

  • Typography

    AaBbCc

    Satoshi

    AaBbCc

    Playfair Display

  • and
    more

We build cohesive visual and verbal identities that communicate your company's unique strengths

Tools we use…

Our proven SEO strategies put your firm at the top of local and industry-specific search results

  • Keyword Research

  • Technical SEO

  • On-page SEO

  • SEO Audits & Reporting

  • Competitor Analysis

  • Link Building

  • Content Strategy

  • Search Intent Mapping

  • Keyword Gap

  • SEO-friendly Copywriting

  • Meta Tags

  • Content Formatting

  • A/B Testing

  • Site Speed Optimization

  • Heatmaps

  • GA4 Setup

  • GSC Integration

  • KPI Analysis

  • SERP Benchmarking

  • Regular Content Updates

  • XML Sitemap Creation

  • Guest Posting

Tools we use…

Have a question?

Send us a message today and we'll reply within 24 hours

OR

How we deliver websites

1

Discovery Call & Proposal

We kick off with a call to understand your goals, audience, and project needs and present a detailed proposal.

2

Branding & Initial Designs

Based on our insights, we design your brand style guide and share the first website drafts.

3

Iterations & Revisions

You give feedback, and we refine the designs until they fully match your vision. After final approval, we launch the completed website and ensure it is running smoothly.

4

Ongoing SEO & Maintenance

We monitor performance, optimize for SEO, and handle regular updates post-launch.

Have a question?

Send us a message today and we'll reply within 24 hours

OR

How we deliver websites

1

Discovery Call & Proposal

We kick off with a call to understand your goals, audience, and project needs and present a detailed proposal.

2

Branding & Initial Designs

Based on our insights, we design your brand style guide and share the first website drafts.

3

Iterations & Revisions

You give feedback, and we refine the designs until they fully match your vision. After final approval, we launch the completed website and ensure it is running smoothly.

4

Ongoing SEO & Maintenance

We monitor performance, optimize for SEO, and handle regular updates post-launch.

Have a question?

Send us a message today and we'll reply within 24 hours

OR

How we deliver websites

1

Discovery Call & Proposal

We kick off with a call to understand your goals, audience, and project needs and present a detailed proposal.

2

Branding & Initial Designs

Based on our insights, we design your brand style guide and share the first website drafts.

3

Iterations & Revisions

You give feedback, and we refine the designs until they fully match your vision. After final approval, we launch the completed website and ensure it is running smoothly.

4

Ongoing SEO & Maintenance

We monitor performance, optimize for SEO, and handle regular updates post-launch.

Have a question?

Send us a message today and we'll reply within 24 hours

OR

How we deliver websites

1

Discovery Call & Proposal

We kick off with a call to understand your goals, audience, and project needs and present a detailed proposal.

2

Branding & Initial Designs

Based on our insights, we design your brand style guide and share the first website drafts.

3

Iterations & Revisions

You give feedback, and we refine the designs until they fully match your vision. After final approval, we launch the completed website and ensure it is running smoothly.

4

Ongoing SEO & Maintenance

We monitor performance, optimize for SEO, and handle regular updates post-launch.