Generate input type if specified.