Skip to content

MarkedInputProps

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

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
TOverlayPropsOverlayPropsType of props for the global Overlay component
optional className: string;

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

Additional classes


optional defaultValue: string;

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

Initial value for uncontrolled mode


optional drag:
| boolean
| {
alwaysShowHandle: boolean;
};

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

Enable drag mode: each individual token (mark or text) becomes its own draggable row. One mark per row, one text fragment per row. Adjacent marks need no separator; adjacent text rows are separated by \n\n.


optional Mark: ComponentType<TMarkProps>;

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

Global component used for rendering markups (fallback for option.mark.slot)


optional onChange: (value) => void;

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

Change event handler

ParameterType
valuestring

void


optional options: Option<TMarkProps, TOverlayProps>[];

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

Configuration options for markups and overlays. Each option can specify its own slot component via mark.slot or overlay.slot. Falls back to global Mark/Overlay components when not specified.


optional Overlay: ComponentType<TOverlayProps>;

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

Global component used for rendering overlays (fallback for option.overlay.slot)


optional readOnly: boolean;

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

Read-only mode


optional ref: Ref<MarkputHandler>;

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

Ref to handler


optional showOverlayOn: OverlayTrigger;

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

Events that trigger overlay display

'change'

optional slotProps: SlotProps;

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

Props to pass to slot components

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

optional slots: Slots;

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

Override internal components using slots

slots={{ container: 'div', span: 'span' }}

optional style: CSSProperties;

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

Additional style


optional value: string;

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

Annotated text with markups