Yellow Flower
Yellow Flower
Yellow Flower

Feb 6, 2022

Building a Navigation Component with Variables

Feb 6, 2022

Building a Navigation Component with Variables

Feb 6, 2022

Building a Navigation Component with Variables

Navigation is essential within any digital interface. Smart Components enable us to create custom interactive navigation components that seamlessly integrate 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 them 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 from the basics

Framer allows you to create fully interactive and animated components, including the ability to nest components within other components. We’re creating a navigation bar component for a website that will contain two different kinds of nested components, each with their own unique interactions. Our project will include a Navigation bar containing various nested components: 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. Therefore, 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, simply 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 entirely new Screen. If we 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.

DOWNLOAD THE APP

Explore a thrilling financial adventure!

Navigation is essential within any digital interface. Smart Components enable us to create custom interactive navigation components that seamlessly integrate 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 them 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 from the basics

Framer allows you to create fully interactive and animated components, including the ability to nest components within other components. We’re creating a navigation bar component for a website that will contain two different kinds of nested components, each with their own unique interactions. Our project will include a Navigation bar containing various nested components: 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. Therefore, 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, simply 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 entirely new Screen. If we 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.

DOWNLOAD THE APP

Explore a thrilling financial adventure!

Navigation is essential within any digital interface. Smart Components enable us to create custom interactive navigation components that seamlessly integrate 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 them 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 from the basics

Framer allows you to create fully interactive and animated components, including the ability to nest components within other components. We’re creating a navigation bar component for a website that will contain two different kinds of nested components, each with their own unique interactions. Our project will include a Navigation bar containing various nested components: 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. Therefore, 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, simply 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 entirely new Screen. If we 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.

DOWNLOAD THE APP

Explore a thrilling financial adventure!