Your card can define a method that returns a custom element for editing the user configuration. https://developers.home-assistant.io/docs/frontend/custom-ui/custom-card/#graphical-card-configuration