Framer
Copy
Logo as SVG
Brand
Guidelines
Get Started
Overview
Compare
FAQ
Plugins
Introduction
Quick Start
Publishing
Changelog
Reference
Guides
Fetch
Examples
Components
Sharing
Auto-Sizing
Property Controls
Overrides
Developers
CodeFile
rename
Rename the code file.
const renamedFile = await codeFile.rename("NewComponentName.tsx");
newName: string — The new name for the file.
newName: string
Promise<CodeFile>
remove
setFileContent