Uplift styles for the Form Input component.
Create a new package called terra-form-input to replace the Input component currently in terra-form.
disabled Whether the input is disabled.isInvalid Whether the input is invalid.onBlur Function to trigger when this input loses focus.onFocus Function to trigger when this input gains focus.If adding onFocus as a first class prop we should probably add onBlur as well.
Will font-size be inherited from base?
terra-form-checkbox used isDisabled for it's prop instead of disabled. https://github.com/cerner/terra-core/blob/master/packages/terra-form-checkbox/src/Checkbox.jsx#L30. We should try to be consistent with all of our form packages
isDisabled. However, terra-form-select and terra-form-textarea both use disabled. If we choose isDisabled, it would be less passive since consumers would need to change to isDisabled from disabled that they are currently using. This may not be a good enough reason to choose disabled over isDisabled. The other form components currently use the required prop (instead of isRequired). It seems natural to just keep the same prop name for these native attributes. Thoughts or preferences anyone?If terra-form-select and terra-form-textarea both use disabled, and checkbox uses isDisabled, we should go with disabled for this component, and get checkbox updated to use disabled before we cut the release for it.
Edit: Logged issue to get this resolved before we cut the release.
Closing in favor of tracking this on #1207
Most helpful comment
If terra-form-select and terra-form-textarea both use
disabled, and checkbox usesisDisabled, we should go withdisabledfor this component, and get checkbox updated to usedisabledbefore we cut the release for it.Edit: Logged issue to get this resolved before we cut the release.