Skip to content

MarkedInputProps

Defined in: react/markput/src/components/MarkedInput.tsx:28

Props for MarkedInput component.

<MarkedInput<ChipProps>
Mark={Chip}
options={[{
markup: '@[__value__]',
mark: { label: 'Click me' }
}]}
/>
Type ParameterDefault typeDescription
TMarkPropsMarkPropsType of props for the global Mark component
TOverlayProps extends CoreOption["overlay"]OverlayPropsType of props for the global Overlay component
optional className: string;

Defined in: react/markput/src/components/MarkedInput.tsx:44

Additional classes


optional defaultValue: string;

Defined in: react/markput/src/components/MarkedInput.tsx:65

Initial value for uncontrolled mode


optional draggable: boolean | DraggableConfig;

Defined in: react/markput/src/components/MarkedInput.tsx:77

Enable drag interaction on block rows. Only effective when layout=‘block’.

false

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.

'inline'

optional Mark: ComponentType<TMarkProps>;

Defined in: react/markput/src/components/MarkedInput.tsx:34

Global component used for rendering markups (fallback for option.Mark)


optional onChange: (value) => void;

Defined in: react/markput/src/components/MarkedInput.tsx:67

Change event handler

ParameterType
valuestring

void


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.


optional Overlay: ComponentType<TOverlayProps>;

Defined in: react/markput/src/components/MarkedInput.tsx:36

Global component used for rendering overlays (fallback for option.Overlay)


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


optional showOverlayOn: OverlayTrigger;

Defined in: react/markput/src/components/MarkedInput.tsx:61

Events that trigger overlay display

'change'

optional slotProps: SlotProps;

Defined in: react/markput/src/components/MarkedInput.tsx:56

Props to pass to slot components

slotProps={{ container: { onKeyDown: handler }, span: { className: 'custom' } }}

optional slots: Slots;

Defined in: react/markput/src/components/MarkedInput.tsx:51

Override internal components using slots

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)


optional style: CSSProperties;

Defined in: react/markput/src/components/MarkedInput.tsx:46

Additional style


optional value: string;

Defined in: react/markput/src/components/MarkedInput.tsx:63

Annotated text with markups