UNPKG

@awsui/components-react

Version:

On July 19th, 2022, we launched [Cloudscape Design System](https://cloudscape.design). Cloudscape is an evolution of AWS-UI. It consists of user interface guidelines, front-end components, design resources, and development tools for building intuitive, en

30 lines 1.12 kB
import { Ace } from 'ace-builds'; import { CodeEditorProps } from './interfaces'; export declare function useEditor(ace: any, themes?: CodeEditorProps.AvailableThemes, loading?: boolean): { editorRef: import("react").RefObject<HTMLDivElement>; editor: import("ace-builds").Editor | null; }; export declare function useSyncEditorLabels(editor: null | Ace.Editor, { controlId, ariaLabel, ariaLabelledby, ariaDescribedby }: { controlId?: string; ariaLabel?: string; ariaLabelledby?: string; ariaDescribedby?: string; }): void; export declare function useSyncEditorSize(editor: null | Ace.Editor, { width, height }: { width?: null | number; height?: null | number; }): { onResize: () => void; }; export declare function useSyncEditorValue(editor: null | Ace.Editor, value: string): void; export declare function useSyncEditorLanguage(editor: null | Ace.Editor, language: string): void; export declare function useSyncEditorWrapLines(editor: null | Ace.Editor, wrapLines?: boolean): void; export declare function useSyncEditorTheme(editor: null | Ace.Editor, theme: CodeEditorProps.Theme): void;