Light slider with smart light

Hope someone can help
how do I make a slider that can control lights gradually

Light entities that support dimming feature automatically have a slider when you open them from a main ui page. Inside activities there is currently no way to add a slider component but maybe with the new ui that is is also used in the screenshot.

Ahh thanks