Add a class to each autocomplete label

If I wanted to style each autocomplete label individually, say in the case where each label represented a font and the label rendered as that font, how would I approach it?

Generate a CSS class for each font, and use optionClass to assign those classes to option elements.

1 Like