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 |
|---|---|---|---|
| actionElement | ReactNode | ||
| actionProps | HTMLAttributes<HTMLDivElement> | ||
| alignment | BubbleAlignments | start | |
| avatar | ReactNode | ||
| avatarPlacement | AvatarPlacements | middle | |
| color | string | ||
| colorType | ColorTypes | ||
| contentProps | HTMLAttributes<HTMLDivElement> | ||
| footerProps | HTMLAttributes<HTMLDivElement> | ||
| maxContentWidth | number | 75 | The maximum width of the message container in percentage of the row width Default is 75(%) |
| message | ReactNode | ||
| messageProps | TextProps | ||
| radius | number | ||
| renderStatusIcon | (status: MessageStatus) => ReactNode | ||
| status | MessageStatus | ||
| variant | BubbleVariants | contained |
| Prop name | Type | Default | Description |
|---|---|---|---|
| allowElement | AllowElement | Filter elements (optional); allowedElements / disallowedElements is used first. | |
| allowedElements | readonly string[] | Tag names to allow (default: all tag names); cannot combine w/ disallowedElements. | |
| children | string | Markdown. | |
| components | Components | Map tag names to components. | |
| disallowedElements | readonly string[] | Tag names to disallow (default: []); cannot combine w/ allowedElements. | |
| rehypePlugins | PluggableList | List of rehype plugins to use. | |
| remarkPlugins | PluggableList | List of remark plugins to use. | |
| remarkRehypeOptions | Readonly<Options> | Options to pass through to remark-rehype. | |
| skipHtml | boolean | Ignore HTML in markdown completely (default: false). | |
| unwrapDisallowed | boolean | Extract (unwrap) what’s in disallowed elements (default: false); normally when say strong is not allowed, it and it’s children are dropped, with unwrapDisallowed the element itself is replaced by its children. | |
| urlTransform | UrlTransform | Change URLs (default: defaultUrlTransform) |
| 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. | |
| colorType | ColorTypes | Set color based on theme. If color is specified, that prop is used instead of this. | |
| disabled | boolean | Equivalent to button's disabled property. | |
| keyboardClickKeys | string[] | ||
| loading | boolean | ||
| 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> | ||
| radius | string | ||
| scrollOptions | ScrollToOptions | ||
| size | IconButtonSizes | ||
| springConfig | Partial<AnimationConfig> | ||
| tooltip | ReactNode | ||
| tooltipProps | Omit<TooltipProps, "title" | "children"> | ||
| variant | IconButtonVariants |
Copyright © 2018-2025 Sea Labs