Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fignite/helpers

Repository files navigation

@fignite/helpers

A collection of helpers for Figma plugins and widgets.

Install

Install using the following.

npm install @fignite/helpers

Usage

Include helpers in your main code.

// main.ts

import { getPageNode } from '@fignite/helpers'

figma.on('selectionchange', () => {
    const selection = figma.currentPage.selection
    if (selection.length === 0) return

    const pageNode = getPageNode(selection[0])

    console.log(pageNode)
})

You can see a list of the helpers inside packages/helpers/src.

Contributing

If you'd like to contribute, please see the contributing guidelines.

About

A collection of helpers for Figma plugins

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •