Building a Navigation Component with Variables
No need to spend time changing colors and styles manually. Our component & layouts are styled out of the box
Sunday, February 6, 2022
·
·
Finance

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.

Starting a Career in Web Design
Apr 8, 2022

Navigating Wellness: A Comprehensive Guide
Mar 11, 2024

Tech Innovations: Shaping the Future
Mar 11, 2024

Mastering Personal Finance: Strategies and Tips
Mar 11, 2024

Artificial Intelligence: The Next Frontier
Mar 11, 2024

Cryptocurrency Demystified: An Introduction
Mar 11, 2024

The Modern Renaissance: Art and Technology Merge
Mar 11, 2024

Eco-Friendly Living: Sustainability in the 21st Century
Mar 11, 2024

The Entrepreneur's Journey: From Idea to Reality
Mar 11, 2024

The Science of Happiness: Psychological Perspectives
Mar 11, 2024

Digital Marketing: Trends to Watch
Mar 11, 2024

Revolutionizing Healthcare: The Impact of Tech
Mar 11, 2024

Mindfulness and Productivity: A Balanced Approach
Mar 11, 2024

Building Resilience in Times of Change
Mar 11, 2024

The Future of Work: Remote Trends and Technologies
Mar 11, 2024

Investing in Green Technology: The Path Ahead
Mar 11, 2024

Create a Landing Page That Performs Great
Mar 15, 2022

How Can Designers Prepare for the Future?
Feb 28, 2022

Building a Navigation Component with Variables
Feb 6, 2022

How to Create a Design Portfolio
Jan 12, 2022
Building a Navigation Component with Variables
No need to spend time changing colors and styles manually. Our component & layouts are styled out of the box
2/6/22
,