API reference: @salmonui/editors/inline-edit
InlineEditInputPropsinterface
import type { InlineEditInputProps } from '@salmonui/editors/inline-edit';interface InlineEditInputProps {
readonly id: string;
readonly value: string;
readonly onChange: (event: {
readonly target: {
readonly value: string;
};
}) => void;
readonly onKeyDown: (event: KeyboardEvent<HTMLElement>) => void;
readonly 'aria-invalid': true | undefined;
readonly 'aria-describedby': string | undefined;
readonly 'aria-label': string | undefined;
readonly readOnly: boolean;
readonly autoFocus: true;
}
Props for the edit element: spread them on an input or pass them to a Salmon field.
| Name | Signature | Description |
|---|---|---|
id | readonly id: string; | |
value | readonly value: string; | |
onChange | readonly onChange: (event: {
readonly target: {
readonly value: string;
};
}) => void; | |
onKeyDown | readonly onKeyDown: (event: KeyboardEvent<HTMLElement>) => void; | |
aria-invalid | readonly 'aria-invalid': true | undefined; | |
aria-describedby | readonly 'aria-describedby': string | undefined; | |
aria-label | readonly 'aria-label': string | undefined; | |
readOnly | readonly readOnly: boolean; | |
autoFocus | readonly autoFocus: true; |