figma libraries code example
Example 1: figma
Figma is a vector graphics editor and prototyping tool.
It is primarily web-based, with additional offline features enabled by desktop
applications for macOS and Windows.
The Figma Mirror companion apps for Android and iOS allow viewing Figma
prototypes on mobile devices.
Example 2: figma documentation
// The ': string[]' is an annotation
let list: string[] = []
for (const node of figma.currentPage.selection) {
list.push(node.type)
}
// The ': number' are also annotations
function doThing(x: number, str: string) {
// ...
}