Skip to content
Back to changelog

Text Pattern Support for Inline Styling

Text Pattern Support for Inline Styling

Text pattern support - style inline text with delimiters

Style part of a text component without splitting it into separate layers. Wrap a word or phrase in a delimiter and that span picks up its own color, background, padding, and border while the rest of the text stays as it is.

How it works

In a text component's properties, open Text Patterns and add one. Pick a delimiter from the twelve built in (*, [ ], { }, |, ~, _, #, @, $, %, ^, or &), then set its text color, background, horizontal and vertical padding, and border (width, color, style, and radius). Wrap text with that delimiter in the editor and it styles live as you type: *highlighted*, [New], or {Limited time}.

Good to know

Define as many patterns as you need; parsing keeps them from overlapping and checks that each delimiter pair matches. Styling renders the same client-side and server-side, so bulk and API renders pick it up too.

Handy for badges and labels, highlighted keywords, prices, and tags, all inside a single text component.

We use cookies to run the site and, depending on your region and your choice here, for analytics and marketing. See our Cookie Policy. You can change this any time from “Cookie settings” in the footer.