
Coral is a thoroughly developed design system widely adopted by developers and designers for creating beautiful and user-friendly Sea internal products.
Copyright © 2018-2025 Sea Labs
Blogs
All blogs| Prop name | Type | Default | Description | 
|---|---|---|---|
| as | any | Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended. | |
| bottomElement | ReactNode | ||
| bottomElementProps | HTMLAttributes<HTMLDivElement> & { ref?: Ref<HTMLDivElement>; } | ||
| disabled | boolean | ||
| editorProps | PluginEditorProps & { ref?: Ref<PluginEditor>; } | ||
| initialValue | EditorState | EditorState.createEmpty() | |
| invalid | boolean | ||
| maxRows | number | ||
| minRows | number | ||
| onChange | (value: EditorState) => void | ||
| placeholder | ReactNode | ||
| placeholderProps | HTMLAttributes<HTMLDivElement> & { ref?: Ref<HTMLDivElement>; } | ||
| resize | Resize | none | |
| toolbarElement | ReactNode | ||
| value | EditorState | 
| Prop name | Type | Default | Description | 
|---|---|---|---|
| as | any | Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended. | |
| disabled | boolean | Equivalent to button's disabled property. | |
| keyboardClickKeys | string[] | ||
| onBlur | FocusEventHandler<HTMLDivElement> | ||
| onClick | MouseEventHandler<HTMLDivElement> | ||
| onKeyDown | KeyboardEventHandler<HTMLDivElement> | ||
| onKeyUp | KeyboardEventHandler<HTMLDivElement> | ||
| onMouseDown | MouseEventHandler<HTMLDivElement> | ||
| onMouseLeave | MouseEventHandler<HTMLDivElement> | ||
| onMouseUp | MouseEventHandler<HTMLDivElement> | ||
| onRelease | EventHandler<SyntheticEvent<HTMLDivElement, Event>> | Callback that's triggered after click i.e. mouseup and keyup of enter or space. | |
| onTouchEnd | TouchEventHandler<HTMLDivElement> | ||
| onTouchStart | TouchEventHandler<HTMLDivElement> | 
| Prop name | Type | Default | Description | 
|---|---|---|---|
| as | any | Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended. | |
| countProps | HTMLAttributes<HTMLDivElement> | ||
| getCharCount | (value: EditorState) => number | (editorState: EditorState) => { const mentionExtraCount = sum( convertToRaw(editorState.getCurrentContent()).blocks.map((b) => sum(b.entityRanges.map((er) => er.length - 1))) ); return getTextCharCount(editorState) - mentionExtraCount; } | |
| outOf | number | ||
| outOfProps | HTMLAttributes<HTMLDivElement> | 
| Prop name | Type | Default | Description | 
|---|---|---|---|
| as | any | Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended. | |
| editorProps | PluginEditorProps & { ref?: Ref<PluginEditor>; } | ||
| value | EditorState | 
| Prop name | Type | Default | Description | 
|---|---|---|---|
| config | MentionPluginConfig | ||
| id | string | ||
| initialIsOpen | boolean | ||
| initialKeyboardHighlightedIndex | number | ||
| initialMouseHighlightedIndex | number | ||
| initialSearchValue | string | ||
| initialSelectedIndex | number | ||
| initialValue | SelectValue | ||
| isOpen | boolean | ||
| keyboardHighlightedIndex | number | ||
| listProps | SelectScrollerProps | ||
| mouseHighlightedIndex | number | ||
| onChange | ChangeCallback | Called when selected value is changed. Different from onSelect, onChange is not called when the value is already selected. | |
| onIsOpenChange | (isOpen: boolean) => void | ||
| onKeyboardHighlightedIndexChange | (index: number) => void | ||
| onMouseHighlightedIndexChange | (index: number) => void | ||
| onSearch | SearchCallback | ||
| onSelect | ChangeCallback | Different from onChange: onSelect is triggered even if the option's value is the selected one. | |
| onSelectedIndexChange | (index: number) => void | ||
| renderButton | (props: MentionButtonProps) => ReactElement<any, string | JSXElementConstructor<any>> | (props: MentionButtonProps) => <MentionButton {...props} /> | |
| searchValue | string | This is not the selected value. Rather, it's a search value on input if you use SelectSearch. | |
| selectedIndex | number | ||
| stateReducer | AcdcStateReducer | ||
| value | SelectValue | 
| Prop name | Type | Default | Description | 
|---|---|---|---|
| as | any | Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended. | |
| data | any | ||
| disabled | boolean | ||
| index | number | ||
| leftElement | ReactNode | ||
| name | string | ||
| value | SelectValue | 

Copyright © 2018-2025 Sea Labs