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
When using the highlight component, it would be convenient to be able to not give any highlight to it and it would still render a span with text on it without highlighting anything.
Background
I would like to render a text without knowing if I have anything to highlight or not.
Currently, I have to do something like that:
{highlight ? <Highlighttext={text}highlight={highlight}/> : <Label>{text}</Label>}// I would prefer, it just ignores the highlight if it's undefined<Highlighttext={text}highlight={highlight}>
It throws an error at the moment.
The text was updated successfully, but these errors were encountered:
New Feature Proposal
Description
When using the highlight component, it would be convenient to be able to not give any highlight to it and it would still render a span with text on it without highlighting anything.
Background
I would like to render a text without knowing if I have anything to highlight or not.
Currently, I have to do something like that:
It throws an error at the moment.
The text was updated successfully, but these errors were encountered: