Saltar al contenido
El Muestrario

componente · @solu30/ui-kit/data-display

DebouncedSearchInput

El componente, montado

Cargando el componente del paquete instalado…

Cargando el chunk del paquete instalado…

De dónde se importa

import { DebouncedSearchInput } from '@solu30/ui-kit/data-display'

Props

10 props declaradas en los tipos de la versión instalada.
PropRequeridaTipoQué hace
valuestringExternal (debounced) value — used as initial + to sync on programmatic clears.
onDebouncedChange(next: string) => void
delayopcionalnumberDelay in ms (default 300).
placeholderopcionalstring
classNameopcionalstring
autoFocusopcionalboolean
shortcutHintopcionalstringF-key shortcut hint shown on the right (e.g. "F1").
inputRefopcionalReact.RefObject<HTMLInputElement | null>Optional ref forwarded to the underlying input.
isGlobalSearchTargetopcionalbooleanWhen true (default), adds `data-search-input` and `aria-keyshortcuts="F1"` so the global useFocusSearch hook can locate this input. Set to false to opt out (e.g. secondary search inputs on the same page).
fullWidthopcionalbooleanPassthrough to `TextInput`. Default `true` (unchanged). `className` lands on the `<input>`, NOT on the wrapper `TextInput` mounts — so a consumer passing `className="w-64"` shrinks the input while the wrapper stays `w-full`, leaving dead space between the input and the edge of its cell that the consumer has no way to remove. Measured in Luigi (`/rrhh/franquicias`, 2026-07-25): input at 256 px inside a 516 px wrapper. Pass `false` to let the component size to its content. NOT a fix for toolbars wrapping to extra rows — that was the initial hypothesis and the measurement refuted it: with `fullWidth={false}` the wrapper dropped to 256 px and the toolbar stayed at 3 rows, because its children add up to 1084 px in 516 px of width. That wrap is legitimate.