Text Property in Component in Figma: What It Is and How It Works
text property in a component allows you to create editable text fields inside that component. This means when you use the component in your designs, you can change the text content without detaching or altering the original component structure.How It Works
Think of a Figma component like a reusable template or a cookie cutter. The text property inside this template is like a blank label you can write on each time you use the cookie cutter. Instead of making a new cookie cutter for every label, you just change the text on the label.
When you create a component with text layers, Figma lets you mark those text layers as editable properties. This means when you drag an instance of that component onto your canvas, you can click and change the text directly without breaking the link to the original component. This keeps your design consistent but flexible.
Example
This example shows how to create a component with a text property and then edit that text in an instance.
1. Create a frame with a text layer saying "Button". 2. Convert the frame to a component (Right-click > Create Component). 3. Select the text layer inside the component. 4. In the right sidebar, under "Properties", click the plus (+) icon next to "Text" to add a text property. 5. Drag an instance of this component onto the canvas. 6. Select the instance and in the right sidebar, find the text property and change the text to "Submit" or any other label. // This process is done inside Figma's UI, not code.
When to Use
Use text properties in components when you want to reuse design elements like buttons, cards, or labels but need to change the text content each time. This is common in UI design where the style stays the same but the wording changes.
For example, a button component can have a text property so you can create "Save", "Cancel", or "Delete" buttons all from the same component. This saves time and keeps your design consistent.
Key Points
- Text properties let you edit text inside component instances without detaching.
- They keep your design consistent and flexible.
- Ideal for reusable UI elements with changing text.
- Set text properties in the component's properties panel.