Interactive Lovelace Alarm panel card - is it possible at all?

I think that the standard Lovelace Alarm panel card just calls enitry.alarm_arm_away/enitry.alarm_disarm services when user clicks Arm Away/Disarm.

My custom alarm checks if there are any open sensors and asks user if they want to arm anyway or cancel.

Is it possible to achieve something like that in Lovelace?
I presume I should create a custom card, but have no idea how it works and would be grateful for any advice/example.