View the plugin starters →
Learn Figma DevelopmentAboutAboutContact ↗Contact ↗ (opens in a new tab)
GitHubGitHub (opens in a new tab)
  • Intro
  • Getting started

    • Directory Structure
    • Open Source Examples
    • Starters

    • Create a Circle
    • Create a Frame
    • Create a Line
    • Create a Rectangle
    • Create an Arrow
    • Is Top Level Frame
    • Clone Figma Layer Node
    • Get All Selected
    • Go to Specific Layers
    • Rename Layer
    • Resize Plugin
    • Using Local Storage

    • Figma Color Handling
Question? Give us feedback → (opens in a new tab)Edit this page
How to
Resize Plugin

Resize plugin

This is helpful for when you need to minimize or expand the plugin for different user actions.

code.js
const height = '480';
const width = '320';
 
figma.ui.resize(width, height);

Check Figma API Docs for Figma UI - Resize (opens in a new tab)

Rename LayerUsing Local Storage

Figma Plugin Development