Range Input orient props - Property 'orient' does not exist on type 'DetailedHTMLProps<InputHTMLAttributes, HTMLInputElement>'
up vote 0 down vote favorite Trying to create a slider input, which has a prop "orient". I can't set it to "vertical" because of the React input typing. Is it possible to extend the declaration to add the necessary prop? Or force Typescript to allow the prop? <input className=className("slider", props) step=props.step min=props.min max=props.max value=props.value type="range" orient=props.isVertical ? "vertical" : "horizontal" onChange=props.onChange /> reactjs typescript jsx share | improve this question asked Nov 10 at 12:17 NeonMonk 22 3 add a comment | up vote 0 down vote favorite Trying to create a slider input, which has a prop "orient". I can't set it to "vertical" because of the React input typing. Is it possible to extend the declaration to add the necessary prop? Or force Typescript to allow the prop? <input c...