Search
CodeFile
CodeFile
Represents a code file in the Framer project, such as a code component or code override.
Methods & Properties
The unique identifier of the code file.
The name of the code file (e.g., "MyComponent.tsx").
The file system path of the code file within the project.
The current source code content of the file.
The array of exports available in this code file (components and overrides).
Set the content of this code file. Creates a new version.
Rename this code file.
Remove this code file from the project.
Get all versions (history) of this code file.
Run TypeScript type checking on this code file.
Navigate to this code file in the Code Editor. May switch modes to reveal the relevant view.