# How to Add Code to Framer

> To add code to Framer, navigate to your project, open the menu, and choose Code. Click Create Code Component, name it, and select Create. View the syntax highlighting, then copy the link to paste the code into your local project.

Canonical: https://livedemo.ai/tutorials/how-to-add-code-to-framer/
Apps: Framer
Updated: 2026-10-05
Interactive demo: https://story-api.livedemo.ai/workspaces/62255d3d3304f17b8f5e2d03/stories/692a2cf1a98365d086570479/preview?step=1

## Steps

1. Navigate to your Framer project where you want to implement the code.
2. Click on the menu bar to access the component creation options.
3. Choose 'Code' from the options to proceed to the editor.
4. Start by clicking 'Create Code Component' to begin crafting your custom functionality.
5. Give your component a clear, descriptive name that reflects its purpose.
6. Finally, click 'Create' to finalize your component and add it to your project canvas.
7. Notice the code syntax highlighting that makes development more readable and error-spotting easier.
8. Hit 'Copy link' and paste the code into your local project for integration.
