How to build basic components on Framer
Building basic components in Framer involves creating reusable design elements by selecting objects, converting them to components, and customizing their properties. Components can be created from any combination of frames, shapes, text, or other elements on your canvas.
Prerequisites
- Basic understanding of design principles
- Framer account and project setup
- Familiarity with Framer's canvas interface
- Knowledge of layers and frames
Step-by-Step Instructions
Create Your Base Design Element
F to add frames, shapes, or text elements. Ensure your design is properly grouped and positioned as desired.Select All Elements for Your Component
Shift and click each element individually. You can also use Cmd+A (Mac) or Ctrl+A (Windows) if you want to select everything on the canvas. Make sure all related elements are included in your selection.Convert Selection to Component
Cmd+K (Mac) or Ctrl+K (Windows). Your selection will be converted into a component instance, indicated by a purple border and component icon in the layers panel.Name Your Component
Configure Component Properties
+ button. Create properties for elements you want to customize, such as text content, colors, or visibility. Choose the appropriate property type: Text, Boolean, Color, or Instance Swap.Test Your Component Instance
Cmd+D (Mac) or Ctrl+D (Windows). Select the instance and modify the component properties in the Properties Panel to ensure they work as expected.Edit the Master Component
Esc or click outside to exit edit mode.Organize in Assets Panel
Common Issues & Troubleshooting
Component properties not showing up in instances
Ensure you've properly connected the component property to the specific element. In component edit mode, select the element and link it to the property in the Component Properties section.
Component instances not updating when master is edited
Check if the instance has been detached from the master component. If so, you'll need to replace it with a fresh instance from the Assets Panel or reset overrides.
Cannot create component from selection
Make sure you have at least one element selected and that you're not trying to create a component from another component instance. You may need to detach instance first if working with existing components.
Component appears broken or elements are misaligned
Check the Auto Layout settings and constraints of elements within the component. Ensure proper spacing and alignment rules are set in the component's master design.