createWebPage

Beta
Beta

createWebPage

createWebPage

Create a new web page with a given path.

const webPage = await framer.createWebPage("/success")
const nestedPage = await framer.createWebPage("/about/team")

Parameters

  • pagePath: string - The path for the new web page (e.g., "/about" or "/products/overview").

Returns

  • Promise<WebPageNode> - A promise that resolves to the newly created web page node