---
title: "The shared language of props"
description: "Figma component properties and codebase component props share names but serve different purposes: design props mark visual differences, while code props also carry behaviour, events and data."
url: "https://swe.quest/articles/the-shared-language-of-props-ff2798f5935efff7"
canonical: "https://www.figma.com/blog/the-shared-language-of-props/"
source: "Figma"
published: "2023-07-19"
difficulty: "medium"
kind: "Opinion"
reading_minutes: 17
tags: ["design-systems","react","typescript","accessibility","frontend"]
---

# The shared language of props

A post on [Figma](https://swe.quest/sources/figma.md), published 2023-07-19, 17 min read, Opinion. Original: [https://www.figma.com/blog/the-shared-language-of-props/](https://www.figma.com/blog/the-shared-language-of-props/)

## Summary

Figma component properties and codebase component props share names but serve different purposes: design props mark visual differences, while code props also carry behaviour, events and data. A case study from a React/TypeScript app built on Material UI shows two Figma button components mapping to five code components layered over a ButtonPrimitive, which used types to make aria-label required for icon-only buttons. The practical advice is to align variant names and casing where possible, mark Figma-only concepts like interaction state with a prefix such as ":state", and accept differences like disabled being a boolean prop in code.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Design systems](https://swe.quest/tags/design-systems.md) (Web & mobile)
- [React](https://swe.quest/tags/react.md) (Web & mobile)
- [TypeScript](https://swe.quest/tags/typescript.md) (Languages)
- [Accessibility](https://swe.quest/tags/accessibility.md) (Web & mobile)
- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)

## Prerequisites

- React components and props ([easy posts on React](https://swe.quest/tags/react.md?difficulty=easy))
- TypeScript types ([easy posts on TypeScript](https://swe.quest/tags/typescript.md?difficulty=easy))
- Figma components

## Keywords

Figma, Material UI, React, TypeScript, aria-label, Component Inspector

## Related posts

- [Design system annotations, part 2: Advanced methods of annotating components](https://swe.quest/articles/design-system-annotations-part-2-advanced-methods-of-annotating-components-10641335427d3115.md): GitHub Engineering · 2025-05-09 · Medium · 9 min read · Design systems, Accessibility, Frontend
  Design system teams can build their own "Preset annotations": Figma annotation components that carry accessibility details not conveyed visually, in component properties, or in code.
- [Design system annotations, part 1: How accessibility gets left out of components](https://swe.quest/articles/design-system-annotations-part-1-how-accessibility-gets-left-out-of-components-66ef06ec44fc9a9e.md): GitHub Engineering · 2025-05-09 · Medium · 10 min read · Accessibility, Design systems, Frontend
  Accessible design system components don't guarantee accessible designs: heading hierarchies break when components are composed, alt text and labels depend on context, and Figma components can't convey implementation details like link-vs-button or form submission.
- [A tale of two parameter architectures—and how we unified them](https://swe.quest/articles/a-tale-of-two-parameter-architectures-and-how-we-unified-them-9ac87b8fbe7bae01.md): Figma · 2025-07-29 · Medium · 11 min read · Design systems, System design, Refactoring & migrations
  Figma replaced the separate architectures behind component properties (scoped, layer-level parameters) and variables (global, library-level parameters) with one parametrization system.
- [The making of the Figma Pattern Library](https://swe.quest/articles/the-making-of-the-figma-pattern-library-500fd6e5ca81c90e.md): Figma · 2024-11-21 · Medium · 9 min read · Design systems, Frontend, Accessibility
  Figma rebuilt its fragmented internal design system as the Figma Pattern Library (FPL) ahead of the UI3 redesign, with a small team of designers and engineers working in a paired style.
- [How Thumbtack structures their design system](https://swe.quest/articles/how-thumbtack-structures-their-design-system-88dae4da18cdc3ea.md): Figma · 2023-07-13 · Medium · 8 min read · Design systems, Frontend, React, CSS
  Thumbtack's Thumbprint design system is organized in three layers: design tokens shared by web and native, an atomic CSS library built on the tokens, and accessible React components on top.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
