You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Providing a marksOrder prop to force some marks to render in a specific order.
All other marks will render after.
Using '*' will define the position of all others marks ['*', 'myMark'].
constcomponents={marks: {color: ({children})=><spanclassName="color">{children}</span>,border: ({children})=><spanclassName="border">{children}</span>,},marksOrder: ['color','border'],// equivalent to `['color', 'border', '*']`// marksOrder: ['*', 'color', 'border'], // render all before those specifics marks}Thanks
The text was updated successfully, but these errors were encountered:
Hi,
Currently marks render alphabetically and I'm facing a use case where I need to have a mark render before another.
See this codesandbox.
Issue
I need elements with
.border
to be rendered as child of.color
. Currentlyborder
mark renders first because of alphabetically sorting.Proposal
Providing a
marksOrder
prop to force some marks to render in a specific order.All other marks will render after.
Using
'*'
will define the position of all others marks['*', 'myMark']
.The text was updated successfully, but these errors were encountered: