MarkedInputProps
Defined in: react/markput/src/components/MarkedInput.tsx:28
Props for MarkedInput component.
Example
Section titled “Example”<MarkedInput<ChipProps> Mark={Chip} options={[{ markup: '@[__value__]', mark: { label: 'Click me' } }]}/>Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type | Description |
|---|---|---|
TMarkProps | MarkProps | Type of props for the global Mark component |
TOverlayProps extends CoreOption["overlay"] | OverlayProps | Type of props for the global Overlay component |
Properties
Section titled “Properties”className?
Section titled “className?”optional className: string;Defined in: react/markput/src/components/MarkedInput.tsx:44
Additional classes
defaultValue?
Section titled “defaultValue?”optional defaultValue: string;Defined in: react/markput/src/components/MarkedInput.tsx:65
Initial value for uncontrolled mode
draggable?
Section titled “draggable?”optional draggable: boolean | DraggableConfig;Defined in: react/markput/src/components/MarkedInput.tsx:77
Enable drag interaction on block rows. Only effective when layout=‘block’.
Default
Section titled “Default”falselayout?
Section titled “layout?”optional layout: "block" | "inline";Defined in: react/markput/src/components/MarkedInput.tsx:73
Layout mode: ‘inline’ renders tokens in a single flow, ‘block’ stacks each token as its own row.
Default
Section titled “Default”'inline'optional Mark: ComponentType<TMarkProps>;Defined in: react/markput/src/components/MarkedInput.tsx:34
Global component used for rendering markups (fallback for option.Mark)
onChange()?
Section titled “onChange()?”optional onChange: (value) => void;Defined in: react/markput/src/components/MarkedInput.tsx:67
Change event handler
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
value | string |
Returns
Section titled “Returns”void
options?
Section titled “options?”optional options: Option<TMarkProps, TOverlayProps>[];Defined in: react/markput/src/components/MarkedInput.tsx:42
Configuration options for markups and overlays. Each option can specify its own component via option.Mark or option.Overlay. Falls back to global Mark/Overlay components when not specified.
Overlay?
Section titled “Overlay?”optional Overlay: ComponentType<TOverlayProps>;Defined in: react/markput/src/components/MarkedInput.tsx:36
Global component used for rendering overlays (fallback for option.Overlay)
readOnly?
Section titled “readOnly?”optional readOnly: boolean;Defined in: react/markput/src/components/MarkedInput.tsx:69
Read-only mode
optional ref: Ref<MarkputHandler>;Defined in: react/markput/src/components/MarkedInput.tsx:30
Ref to handler
showOverlayOn?
Section titled “showOverlayOn?”optional showOverlayOn: OverlayTrigger;Defined in: react/markput/src/components/MarkedInput.tsx:61
Events that trigger overlay display
Default
Section titled “Default”'change'slotProps?
Section titled “slotProps?”optional slotProps: SlotProps;Defined in: react/markput/src/components/MarkedInput.tsx:56
Props to pass to slot components
Example
Section titled “Example”slotProps={{ container: { onKeyDown: handler }, span: { className: 'custom' } }}slots?
Section titled “slots?”optional slots: Slots;Defined in: react/markput/src/components/MarkedInput.tsx:51
Override internal components using slots
Example
Section titled “Example”slots={{ container: 'div', span: 'span' }}optional Span: ComponentType<MarkProps>;Defined in: react/markput/src/components/MarkedInput.tsx:32
Global component used for rendering text tokens (default: built-in Span)
style?
Section titled “style?”optional style: CSSProperties;Defined in: react/markput/src/components/MarkedInput.tsx:46
Additional style
value?
Section titled “value?”optional value: string;Defined in: react/markput/src/components/MarkedInput.tsx:63
Annotated text with markups