PlimInputBoxProps
type PlimInputBoxProps = { asyncEventListeners?: AsyncListenerRegistration[]; autoFocus?: boolean; className?: string; clearOnSubmit?: boolean; handle?: EditorHandle; initialContent?: DocumentNode; onSubmit?: (state) => void; onTransaction?: (tx, state) => void; placeholder?: string; plim: PlimDriver; readonly?: boolean; style?: React.CSSProperties; submitOnEnter?: boolean; whenReady?: () => void;};Defined in: react/src/index.tsx:177
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
asyncEventListeners? | AsyncListenerRegistration[] | - | react/src/index.tsx:193 |
autoFocus? | boolean | - | react/src/index.tsx:182 |
className? | string | - | react/src/index.tsx:194 |
clearOnSubmit? | boolean | Clear the input and re-focus after a successful submit. Default true. | react/src/index.tsx:188 |
handle? | EditorHandle | - | react/src/index.tsx:179 |
initialContent? | DocumentNode | - | react/src/index.tsx:180 |
onSubmit? | (state) => void | Called with the current state when the user submits (never for empty input). | react/src/index.tsx:190 |
onTransaction? | (tx, state) => void | - | react/src/index.tsx:191 |
placeholder? | string | Placeholder shown while the input is empty. Applied at mount. | react/src/index.tsx:184 |
plim | PlimDriver | - | react/src/index.tsx:178 |
readonly? | boolean | - | react/src/index.tsx:181 |
style? | React.CSSProperties | - | react/src/index.tsx:195 |
submitOnEnter? | boolean | Enter submits (Shift+Enter → newline). Default true. | react/src/index.tsx:186 |
whenReady? | () => void | - | react/src/index.tsx:192 |