TC Design

How do I add content into a component without having to detach it?

When you use a component from one of our Figma libraries in your project file, you are using an instance of the main component. Instances can be detached and modified; however, this will break the link to the main component and the instance will no longer receive updates made to the component.

Simple Component Overrides

Fortunately, some attributes of a component can be overridden without having to detach the instance. Examples include updating text, hiding or showing icons, and swapping nested components. In the current version of the Telerik & KENDO UI libraries, updating text and hiding or showing aspects of the component can be done through the Layers panel. Eventually, we will update these components to leverage the component properties feature launched in May 2022.

Swapping nested components can be done by selecting the nested component layer and swapping the instance through the Component section of the Design panel.

Medium Secondary Button component with the icon layer visible
Figure 1 – Medium Secondary Button component with the icon layer visible
Swapping nested icon component within a button
Figure 2 – Swapping nested icon component within a button

Working with Container Components

While we want to keep our component instances linked back to the main library, we were experiencing a roadblock when using content container components. For example, when using the Tab Strip component, it was possible to replace the sample text with new text content, however, it was not possible to add any other content, like lists or buttons. This was preventing our designers from being able to use these components effectively to create page layouts without detaching the component instance.

We have reworked the Tab Strip component to use a nested placeholder component. This allows the body to be replaced with any type of content without having to detach the component instance.

How to Use

  1. Create the body contents of your tab strip within your project file

  2. Convert this into a local component

  3. Bring the Tab Strip component into your project file

  4. Select the nested Placeholder component

  5. Swap the Placeholder component with your new local component using the Component section of the Design panel

Resources

Guide to components in Figma – Figma Help Center

Explore component properties – Figma Help Center

TC Design