Custom "Action Text" Notification

Hello everyone!
I am trying to customize an “Action Text” notification according to the numeric value it is displaying. For example, if the value of the “Action Text” is greater than 50, the notification is danger. But if the numeric value is less than 50 the notification is “steady state”.

Can you explain what you mean by “notification” in this context?
Do you mean a notification message that’s shown when a user taps the component?

duplicate that notification set one as danger one as default, and set visibility conditions according to your value.