@yamlresume/playground
    Preparing search index...

    Interface EditorProps

    Props for the Editor component.

    interface EditorProps {
        language: string;
        lineNumbers?: boolean;
        minimap?: boolean;
        onChange?: (value: string) => void;
        onMount?: OnMount;
        readOnly?: boolean;
        value: string;
    }
    Index

    Properties

    language: string

    The language of the content.

    lineNumbers?: boolean

    Whether to show line numbers. Defaults to true.

    minimap?: boolean

    Whether to show the minimap. Defaults to true.

    onChange?: (value: string) => void

    Callback triggered when content changes.

    onMount?: OnMount

    Callback triggered when the editor is mounted.

    readOnly?: boolean

    Whether the editor is read-only. Defaults to false.

    value: string

    The content of the editor.