![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@snack-uikit/input-private
Advanced tools
npm i @snack-uikit/input-private
export type Type = 'text' | 'password'
export type InputPrivateProps = RefAttributes<HTMLInputElement> &
WithSupportProps<{
name?: string;
value: string;
onChange?(value: string, e?: ChangeEvent<HTMLInputElement>): void;
id?: string;
className?: string;
placeholder?: string;
type?: Types;
disabled?: boolean;
autoComplete?: boolean;
maxLength?: number;
onFocus?: FocusEventHandler<HTMLInputElement>;
onBlur?: FocusEventHandler<HTMLInputElement>;
prefix?: ReactNode;
postfix?: ReactNode;
onClick?: MouseEventHandler<HTMLInputElement>;
onMouseDown?: MouseEventHandler<HTMLInputElement>;
}>;
name | type | default value | description |
---|---|---|---|
name | string | - | Значение html-атрибута name |
value | string | - | Значение input |
onChange | (value: string, e?: ChangeEvent<HTMLInputElement>) => void | - | Колбек смены значения |
placeholder | string | - | Значение плейсхолдера |
id | string | - | Значение html-атрибута id |
className | string | - | CSS-класс |
type | enum Type: "number" , "text" , "password" | text | Тип инпута |
disabled | boolean | - | Является ли поле деактивированным |
readonly | boolean | - | Является ли поле доступным только для чтения |
autoComplete | string | boolean | false | Включен ли автокомплит для поля |
maxLength | number | - | Максимальная длина вводимого значения |
min | number | - | Минимальное значение поля |
max | number | - | Максимальное значение поля |
step | string | number | - | Максимальное значение поля |
onFocus | FocusEventHandler<HTMLInputElement> | - | Колбек обработки получения фокуса |
onBlur | FocusEventHandler<HTMLInputElement> | - | Колбек обработки потери фокуса |
onKeyDown | KeyboardEventHandler<HTMLInputElement> | - | Колбек обработки нажатия клавиши клавиатуры |
tabIndex | number | - | Значение атрибута tab-index |
onClick | MouseEventHandler<HTMLInputElement> | - | Колбек обработки клика |
onMouseDown | MouseEventHandler<HTMLInputElement> | - | Колбек обработки нажатия кнопки мыши |
key | Key | - | |
ref | LegacyRef<HTMLInputElement> | - | Allows getting a ref to the component instance. Once the component unmounts, React will set ref.current to null (or call the ref with null if you passed a callback ref). @see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs} |
hook
Позволяет использовать клавиатуру для навигации по элементам управления
hook
Позволяет использовать кнопку сброса значения
helper
Переносит курсор в конец поля ввода
helper
Выделяет весь текст в поле ввода
helper
Откладывает колбек на следующий цикл EventLoop
helper
Проверяет находится ли курсор в начале поля ввода
helper
Проверяет находится ли курсор в конце поля ввода
FAQs
Unknown package
We found that @snack-uikit/input-private demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.