~/talk

building figma’s widget code generator

Talkat reactjsday 2022 · on Friday, 2022-10-21· [typescript, react, developer-experience]
name:Jenny Lea
github:j-lea
slides:none on file

Claim: a one-click generator turns a selected Figma subtree into TypeScript TSX widget code that renders on canvas and is immediately interactive. Implementation uses the public Figma plugin API (currentPageSelection → node tree → code) and emits component functions plus instance definitions; state sync uses hooks like useSyncState. Demo builds a voting widget in under ten minutes, with working click-to-vote, avatar mapping, and copied gradient fills; images remain placeholder URLs.

AI-written summary · about

  1. 0:00Introduction
  2. 1:47Figma plugins and widgets
  3. 6:33Voting widget demo
  4. 13:46Widget code generator plugin
  5. 24:13How code generator works
  6. 28:27Recap and call to action for widgets
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.