Skip to main content
Version: 57.2.0

Height field

Use the Height field to allow users to input their height. The field stores the value as total inches and displays it as feet and inches. On web, two text inputs accept feet and inches separately. On iOS, tapping the field opens an action sheet for selection. On Android, two dropdowns allow selection of feet and inches. Supports optional min/max props to constrain the allowed height range.

Package: @terreno/ui
Categories: Component
Props interface: HeightFieldProps
Story source: demo/stories/Heightfield.stories.tsx

Live demo

Props

PropTypeRequiredDescription
onChangeOnChangeCallbackYes
blurOnSubmitboolean
disabledboolean
errorTextstring
helperTextstring
iconNameIconName
idstring
maxnumberMaximum height in total inches
minnumberMinimum height in total inches
onBlurOnChangeCallback
onEnterreflection
onFocusreflection
onIconClickreflection
onSubmitEditingreflection
placeholderstring
testIDstringRoot test id for the primary interactive element or container.
testIDsFieldTestIDs
titlestring
valuestring