Size sets DI options, therefore it only works for static values like tuiForm="m" . If you need dynamic binding for the size, you would have to set it for buttons, segmented control and header manually as well.
ElasticContainer to animate dynamic content Slides for animating similar scenario.