Component Creation

Components are pieces of layout that can be re-used.

The simplest way to think about components are little templates with layout that allow you to use a part of your design in many different places. They're great for menus, headers, footers, buttons, etc.

Components can be as small as you like (like a badge) to huge (a big page footer). The size really doesn't matter, what matters is how many times you need to use that part of your design so you can keep and update it in a central place.

Components have two particular things that give them super powers:

Variants: Different appearances for the same content that can transition to each other. Like a button hover state or a light / dark version.

Variables: Dynamic inputs that you can use in your component to customize it, like a button title or color. Or de border radius for a card.

Creation

To create a component, make a selection on the canvas and press command k. Then give it a title. You'll be brought to a new isolated canvas that's just for the component. On the main canvas, you can duplicate the component to create new instances.

You'll also notice that the component automatically creates a variable from the text field (called title). You can use this to customize the text field.

You can find all your created components under Assets → Components.

Technology

Framer components are based on React. If you visually make one, they get compiled to JavaScript in the background. If you use them across projects they get imported using ES Modules.

Component Creation

Components are pieces of layout that can be re-used.

The simplest way to think about components are little templates with layout that allow you to use a part of your design in many different places. They're great for menus, headers, footers, buttons, etc.

Components can be as small as you like (like a badge) to huge (a big page footer). The size really doesn't matter, what matters is how many times you need to use that part of your design so you can keep and update it in a central place.

Components have two particular things that give them super powers:

Variants: Different appearances for the same content that can transition to each other. Like a button hover state or a light / dark version.

Variables: Dynamic inputs that you can use in your component to customize it, like a button title or color. Or de border radius for a card.

Creation

To create a component, make a selection on the canvas and press command k. Then give it a title. You'll be brought to a new isolated canvas that's just for the component. On the main canvas, you can duplicate the component to create new instances.

You'll also notice that the component automatically creates a variable from the text field (called title). You can use this to customize the text field.

You can find all your created components under Assets → Components.

Technology

Framer components are based on React. If you visually make one, they get compiled to JavaScript in the background. If you use them across projects they get imported using ES Modules.

Component Creation

Components are pieces of layout that can be re-used.

The simplest way to think about components are little templates with layout that allow you to use a part of your design in many different places. They're great for menus, headers, footers, buttons, etc.

Components can be as small as you like (like a badge) to huge (a big page footer). The size really doesn't matter, what matters is how many times you need to use that part of your design so you can keep and update it in a central place.

Components have two particular things that give them super powers:

Variants: Different appearances for the same content that can transition to each other. Like a button hover state or a light / dark version.

Variables: Dynamic inputs that you can use in your component to customize it, like a button title or color. Or de border radius for a card.

Creation

To create a component, make a selection on the canvas and press command k. Then give it a title. You'll be brought to a new isolated canvas that's just for the component. On the main canvas, you can duplicate the component to create new instances.

You'll also notice that the component automatically creates a variable from the text field (called title). You can use this to customize the text field.

You can find all your created components under Assets → Components.

Technology

Framer components are based on React. If you visually make one, they get compiled to JavaScript in the background. If you use them across projects they get imported using ES Modules.