Skip to main content
Elliot_George
Jul 4, 2023 11:17 AM UTC
Question

Component properties to mimic span style

I’m creating a component which reads like a single short sentence with part of the sentence in bold and in a different colour. Each part of the sentence should be editable.

For example:

I would love for component properties to preserve text styles and wrap like fluid text.

I’ve tried achieving this using the new wrap feature, but this leaves gaps. Essentially, I’m needing the same functionality that comes with css span style.

This topic has been closed for replies.

2 replies

tank666
Jul 4, 2023 11:34 AM UTC

Why do you need a component property? After all, this can be achieved by overriding the style for the selected range.

UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank
Elliot_George
Jul 4, 2023 12:10 PM UTC

Screenshot 2023-07-04 at 13.09.24

Hi Tank. I’d like for each part of the text string to be editable in this way. It’s also how we’d like it arranged in our CMS for editors.