Add onVariantChosen event handler with documentation