Add mask attribute to components