createSlide
info
This API is only available in Figma Slides
Signature
createSlide(row?: number, col?: number): SlideNode
Remarks
By default, the slide gets appended to the end of the presentation (the last child in the last Slide Row).
Create a slide
const slide = figma.createSlide()
To specify a position in the Slide Grid, pass a row and column index to the function.
Create a slide at index 0, 0
const slide = figma.createSlide(0, 0)