Customizing facet labels in Search UI

I saw this topic asking how to custom facet labels in Search UI, and I figured out a way to do that, and thought I would share. p.s. you should consider not closing topics in only 28 days. In tech forums, people may come across issues months, or even years later.

Basically, I have a custom facet, and I call a function that basically looks up a pre-defined list of labels for any given value. e.g.

<span className="sui-multi-checkbox-facet__input-text">
    {getFilterValueDisplay(option.value)}
</span>

and getFilterValueDisplay() is a custom function that just holds a bunch or if statements (or however you like to look up your data).

thank you for sharing @John_Brandenburg! This is helpful feedback and we will try incorporate it into our documentation examples.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.