How to add KConfig for library?

Exactly this.

PS. Some times my menuconfig start like your - yellow/gray UI. But in this UI Arrows keys not work. How to resolve? I use pio run -t manuconfig - then menu config starts in classik Kernel Config UI (blue/gray) where Arrow keys are works.