UXP
v2.0.0
v2.0.0
  • Introduction
    • Welcome
    • Understanding the Portal
    • Getting Started
  • Releases
  • Interface Types
    • Widgets
  • Interface Guidelines
    • Lists
  • Interacting with Lucy
    • Real-Time Communication
  • Interface Guidelines
  • Custom Styles and CSS
  • Publishing your UIs
    • Bundles
  • lucy-xp
  • Components
    • AsyncButton
    • AutoCompleteInput
    • BarChartLoader
    • Button
    • CRUDComponent
    • CalendarComponent
    • Checkbox
    • ColorPallet
    • ColorPicker
    • ConfirmButton
    • DataGrid
    • DataList
    • DataTable
    • DatePicker
    • DateRangePicker
    • DateTimePicker
    • DefaultLoader
    • DonutChartLoader
    • DropDownButton
    • DynamicForm
    • DynamicSelect
    • FileInput
    • FilterPanel
    • FormFeedback
    • FormField
    • GaugeLoader
    • HeatmapChartLoader
    • HorizontalScrollList
    • IconButton
    • Input
    • ItemCard
    • ItemListCard
    • Label
    • LinkButtonWidget
    • LinkWidgetContainer
    • Loading
    • LoadingSpinner
    • LocalizationForm
    • LocalizationFormModal
    • MapComponent
    • Modal
    • ModalWizard
    • MultiSelect
    • NotificationBlock
    • PieChartComponent
    • Popover
    • PortalContainer
    • ProfileImage
    • RadialGauge
    • SampleDataLabel
    • SearchBox
    • Select
    • SideBar
    • SpaceworxDescriptionTag
    • TabComponent
    • TableComponent
    • TextArea
    • ThemeChanger
    • TimePicker
    • TimeRangePicker
    • TitleBar
    • ToggleFilter
    • Tooltip
    • TreeViewSelectInput
    • TrendChartComponent
    • UserProfile
    • WidgetContainerBlock
    • WidgetWrapper
    • Wizard
  • Hooks
    • useAlert
    • useDebounce
    • useEffectWithPolling
    • useEventSubscriber
    • useFields
    • useMessageBus
    • useResizeEffect
    • useToast
    • useUpdateWidgetProps
  • Types
    • ActionResponse
    • CRUDComponentInstanceProps
    • CRUDComponentProps
    • Column
    • DynamicFormFieldProps
    • DynamicFormProps
    • ExtendedFormProps
    • FieldsHook
    • FormProps
    • FormSectionProps
    • FormValue
    • IAlertResult
    • IAnimation
    • IAutoCompleteInputInstanceProps
    • IButtonSize
    • IButtonType
    • IBuyOnSpaceworxButtonProps
    • ICalendarComponentProps
    • ICallback
    • ICheckboxInstanceProps
    • ICheckboxType
    • ICircleBound
    • IColorPalletProps
    • IColorPickerPosition
    • IColorPickerProps
    • IColorTypes
    • IContentFunction
    • IDataFunction
    • IDataItem
    • IDataTableColumn
    • IDatePickerProps
    • IDateRangePickerProps
    • IDateTimePickerProps
    • IDivIconInterface
    • IDropDownButtonPosition
    • IDropDownButtonProps
    • IDynamicSelectDataFunction
    • IEventDispatcher
    • IEventSubscriber
    • IFileInputInstanceProps
    • IFileInputProps
    • IGaugeProps
    • IHeatmapConfiguration
    • IHeatmapPoint
    • IInputInstanceProps
    • IInputType
    • ILanguage
    • ILocalisationFormModalInstanceProps
    • ILocalisationFormModalProps
    • ILocalisationFormProps
    • IMarker
    • IMessage
    • IModalWizardProps
    • IModalWizardStep
    • IModalWizardStepProps
    • IMultiSelectProps
    • IPolygonBound
    • IPopoverPosition
    • IPopoverProps
    • IPortalContainerProps
    • IPosition
    • IPreviewDetails
    • IProfileProps
    • IRegion
    • IRemove
    • IRenderMarkerPopup
    • IRenderMarkerTooltip
    • ISampleDataLabelProps
    • ISearchBoxInstanceProps
    • ISelectProps
    • ISidebarProps
    • ISize
    • ISpaceworxDescriptionTagProps
    • IStaticImage
    • ITextAreaInstanceProps
    • IThemeChangerProps
    • ITitleFunc
    • IToast
    • IToastResult
    • IToggleOption
    • ITooltipPosition
    • ITooltipProps
    • IUseEffectWithPolling
    • IUseUpdateWidgetProps
    • IWidgetContainerBlockProps
    • IWidgetPreloaderLoaderProps
    • IWidgetWrapperProps
    • IWizardStep
    • IWizardStepProps
    • ListProps
    • MessageBusHook
    • PaginationProps
    • RenderCustomFormView
    • ResizeEffectHook
    • TabComponentProps
    • TabComponentStyles
    • TableComponentProps
    • ToastHook
    • TreeViewSelectInputInstanceProps
    • TreeViewSelectInputProps
    • regionType
Powered by GitBook
On this page
  • Installation
  • Properties
  • type
  • value
  • onChange
  • onFocus
  • onBlur
  • onKeyDown
  • className
  • hasIndicator
  • indicatorColor
  • isValid
  • inputAttr
  • placeholder
  • inline
  • styles
  • readOnly
  • tabIndex
  • spacingMode
  1. Components

Input

A standard text box

Installation

import {Input} from 'uxp/components';

Properties

Name
Type
Description

type

Determines if the input field accepts a password, email address, number or just text. Default is 'text'

value

string

The actual text

onChange

(value: string) => void

This function is called whenever the text changes. The new text value is passed as a parameter

onFocus

() => void

callback function on focus

onBlur

(vale: string) => void

callback function on blur

onKeyDown

(e: React.KeyboardEvent, val: string) => void

callback function on key down

className

string

Any additional class names to be included for the input field

hasIndicator

boolean

Determines if an indicator should be shown at the end of the input.

indicatorColor

string

The color of the indicator icon (relevant only if hasIndicator is true)

isValid

boolean

pass a boolean to indicate if the input is valid or not

inputAttr

{ [key: string]: string | boolean }

additional attributes that can be passed to a tag

placeholder

string

placeholder value

inline

boolean

render inline

styles

React.CSSProperties

additional styles

readOnly

boolean

mark input as read only

tabIndex

number

tab index. default is 0

spacingMode

SpacingMode

type


Determines if the input field accepts a password, email address, number or just text. Default is 'text'

type

value


The actual text

type

string

onChange


This function is called whenever the text changes. The new text value is passed as a parameter

type

(value: string) => void

onFocus


callback function on focus

type

() => void

onBlur


callback function on blur

type

(vale: string) => void

onKeyDown


callback function on key down

type

(e: React.KeyboardEvent, val: string) => void

className


Any additional class names to be included for the input field

type

string

hasIndicator


Determines if an indicator should be shown at the end of the input.

type

boolean

indicatorColor


The color of the indicator icon (relevant only if hasIndicator is true)

type

string

isValid


pass a boolean to indicate if the input is valid or not

type

boolean

inputAttr


additional attributes that can be passed to a tag

type

{ [key: string]: string | boolean }

placeholder


placeholder value

type

string

inline


render inline

type

boolean

styles


additional styles

type

React.CSSProperties

readOnly


mark input as read only

type

boolean

tabIndex


tab index. default is 0

type

number

spacingMode


type

SpacingMode

PreviousIconButtonNextItemCard

Last updated 3 months ago

IInputType
IInputType