Skip to content

ConfiguredMarkedInput

Defined in: packages/markput/src/types.ts:74

Type ParameterDefault type
TMarkPropsMarkProps
TOverlayPropsOverlayProps
ConfiguredMarkedInput(props, deprecatedLegacyContext?): ReactNode;

Defined in: packages/markput/src/types.ts:74

ParameterTypeDescription
propsMarkedInputProps-
deprecatedLegacyContext?anySee React Docs :::caution[Deprecated] This API is no longer supported and may be removed in a future release. :::

ReactNode

optional contextTypes: ValidationMap<any>;

Defined in: node_modules/.pnpm/@types+react@18.3.24/node_modules/@types/react/index.d.ts:1156

Legacy React Docs

FunctionComponent.contextTypes

optional defaultProps: Partial<MarkedInputProps<TMarkProps, TOverlayProps>>;

Defined in: node_modules/.pnpm/@types+react@18.3.24/node_modules/@types/react/index.d.ts:1179

Used to define default values for the props accepted by the component.

React Docs

type Props = { name?: string }
const MyComponent: FC<Props> = (props) => {
return <div>{props.name}</div>
}
MyComponent.defaultProps = {
name: 'John Doe'
}
FunctionComponent.defaultProps

optional displayName: string;

Defined in: node_modules/.pnpm/@types+react@18.3.24/node_modules/@types/react/index.d.ts:1198

Used in debugging messages. You might want to set it explicitly if you want to display a different name for debugging purposes.

Legacy React Docs

const MyComponent: FC = () => {
return <div>Hello!</div>
}
MyComponent.displayName = 'MyAwesomeComponent'
FunctionComponent.displayName

optional propTypes: WeakValidationMap<MarkedInputProps<TMarkProps, TOverlayProps>>;

Defined in: node_modules/.pnpm/@types+react@18.3.24/node_modules/@types/react/index.d.ts:1147

Used to declare the types of the props accepted by the component. These types will be checked during rendering and in development only.

We recommend using TypeScript instead of checking prop types at runtime.

React Docs

FunctionComponent.propTypes