-
Notifications
You must be signed in to change notification settings - Fork 536
/
index.ts
43 lines (40 loc) · 1.58 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import _MarkdownEditor from './MarkdownEditor'
import {DefaultToolbarButtons, Toolbar, ToolbarButton} from './Toolbar'
import {ActionButton, Actions} from './Actions'
import {Label} from './Label'
export type {MarkdownEditorHandle} from './MarkdownEditor'
const MarkdownEditor = Object.assign(_MarkdownEditor, {
/** REQUIRED: An accessible label for the editor. */
Label,
/**
* An optional custom toolbar. The toolbar should contain `ToolbarButton`s before
* and/or after a `DefaultToolbarButtons` instance. To create groups of buttons, wrap
* them in an unstyled `Box`.
*/
Toolbar,
/**
* A custom toolbar button. This takes `IconButton` props. Every toolbar button should
* have an `aria-label` defined.
*/
ToolbarButton,
/**
* The full set of default toolbar buttons. This is all the basic formatting tools in a
* standardized order.
*/
DefaultToolbarButtons,
/**
* Optionally define a set of custom buttons to show in the editor footer. Often if you
* are defining custom buttons you should also wrap the editor in a `<form>`. This
* component should only contain `ActionButton`s.
*/
Actions,
/** A button to show in the editor footer. */
ActionButton
})
export default MarkdownEditor
export type {MarkdownEditorProps} from './MarkdownEditor'
export type {Emoji} from './suggestions/_useEmojiSuggestions'
export type {Mentionable} from './suggestions/_useMentionSuggestions'
export type {Reference} from './suggestions/_useReferenceSuggestions'
export type {FileUploadResult} from './_useFileHandling'
export type {SavedReply} from './_SavedReplies'