import React from 'react' ; import { TextInput } from '@workday/canvas-kit-preview-react/text-input' ; export const LabelPositionHorizontal = ( ) => { const [ value , setValue ] = React . useState ( '' ) ; const handleChange = ( event ) => { setValue ( event . target . value ) ; } ; return ( < TextInput orientation = 'horizontal' > < TextInput . Label > Email < /TextInput.Label> < TextInput . Field onChange = { handleChange } value = { value } / > < /TextInput>); } ;