@octopusdeploy/design-system-components
Version:
The design systems component library.
23 lines (22 loc) • 895 B
TypeScript
type MarkdownTextInputRef = {
focus: () => void;
insertAtCursor: (val: string) => void;
};
interface MarkdownEditorProps {
value: string | undefined;
onChange: (newValue: string) => void;
accessibleName?: string;
autoFocus?: boolean;
placeholder?: string;
bottomNoteText?: string | null;
restrictHeight?: boolean;
disabled?: boolean;
label?: string;
error?: string;
hideMarkdownToggle?: boolean;
controlsInitiallyVisible?: boolean;
onValidate?(value: string): boolean;
textInputRef?(input: MarkdownTextInputRef | null): void;
}
export declare function MarkdownEditor({ onChange, onValidate, hideMarkdownToggle, restrictHeight, label, error, accessibleName, value, disabled, placeholder, textInputRef, controlsInitiallyVisible, autoFocus, bottomNoteText, }: MarkdownEditorProps): import("react/jsx-runtime").JSX.Element;
export {};