Saltar al contenido
El Muestrario

componente · @solu30/ui-kit/input

TextInput

El componente, montado

Cargando el espécimen…

Cargando el chunk del paquete instalado…

De dónde se importa

import { TextInput } from '@solu30/ui-kit/input'

Props

13 props declaradas en los tipos de la versión instalada.
PropRequeridaTipoQué hace
labelopcionalstringFloating label text
erroropcionalstringError message to display below input
errorTypeopcional'warning' | 'error'Type of error styling: 'error' (red) or 'warning' (yellow)
sizeopcionalInputSizeInput size variant
iconopcionalReact.ReactNodeIcon displayed on the left (alias for startIcon)
startIconopcionalReact.ReactNodeIcon displayed on the left
endIconopcionalReact.ReactNodeIcon displayed on the right
prefixopcionalReact.ReactNodeElement rendered inside the input on the left — for text/symbol prefixes (e.g. "$"). Adds pl-9 padding.
suffixopcionalReact.ReactNodeElement rendered inside the input on the right — for text/symbol suffixes (e.g. "kg"). Adds pr-9 padding.
onChangeNumberopcional(value: number) => voidFires alongside onChange with the parsed float value of the input. Returns 0 when value is not a valid number.
helpTextopcionalstringHelp text displayed below input
fullWidthopcionalbooleanWhether input takes full width
floatingLabelopcionalbooleanEnable floating label pattern (CSS-only, no JS state)