Skip to content

MarkedInputProps

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

Props for MarkedInput component.

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

Defined in: packages/markput/src/components/MarkedInput.tsx:42

Additional classes


optional defaultValue: string;

Defined in: packages/core/src/shared/types.ts:46

Default value

CoreMarkputProps.defaultValue

optional Mark: ComponentType<TMarkProps>;

Defined in: packages/markput/src/components/MarkedInput.tsx:32

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


optional onChange: (value) => void;

Defined in: packages/core/src/shared/types.ts:48

Change event handler

ParameterType
valuestring

void

CoreMarkputProps.onChange

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

Defined in: packages/markput/src/components/MarkedInput.tsx:40

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.

CoreMarkputProps.options

optional Overlay: ComponentType<TOverlayProps>;

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

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


optional readOnly: boolean;

Defined in: packages/core/src/shared/types.ts:50

Prevents from changing the value

CoreMarkputProps.readOnly

optional ref: ForwardedRef<MarkedInputHandler>;

Defined in: packages/markput/src/components/MarkedInput.tsx:30

Ref to handler


optional showOverlayOn: OverlayTrigger;

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

Events that trigger overlay display

'change'
CoreMarkputProps.showOverlayOn

optional slotProps: SlotProps;

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

Props to pass to slot components

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

optional slots: Slots;

Defined in: packages/markput/src/components/MarkedInput.tsx:50

Override internal components using slots

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

optional style: CSSProperties;

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

Additional style


optional value: string;

Defined in: packages/core/src/shared/types.ts:44

Annotated text with markups for mark

CoreMarkputProps.value