Skip to main content

Allow selective exposure of nested component properties

  • December 24, 2025
  • 0 replies
  • 17 views

Sanil297

Currently, Figma allows exposing properties from nested components, but all properties of the nested component are exposed together. There is no way to selectively expose only specific properties.

Problem

In many real-world design systems, this becomes limiting.

Example:

  • I have a Button component with a nested Icon component.

  • The Icon component has:

    • icon-size (variant)

    • icon-instance-swap (instance swap)

  • In the Button, I only want designers to change the icon (instance swap).

  • I do not want to expose the icon size, as size should be controlled by the Button design.

With the current behavior:

  • Exposing the nested Icon forces all icon properties (size + swap) to be exposed.

  • This increases cognitive load and breaks component constraints.

Why this matters

  • Design systems often use building-block components

  • Not all nested properties are meant to be user-facing

  • Designers need guardrails, not full internal control

  • This leads to cleaner APIs, fewer mistakes, and better adoption

Suggested Solution

Allow selective exposure of nested component properties, for example:

  • A checkbox-based selector when exposing nested components

  • Ability to expose only:

    • icon-instance-swap

    • and hide icon-size, variant, or other internal properties

This could work as an extended nested property selection, rather than an all-or-nothing exposure.

Impact

  • Better component encapsulation

  • Cleaner and simpler component APIs

  • Stronger design system governance

  • Reduced misuse of internal properties