
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
Prop name | Type | Default | Description |
---|---|---|---|
active | boolean | ||
arrow | ArrowProps | ||
as | any | Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended. | |
button | ReactElement<BaseButtonProps, any> | ||
container | HTMLElement | configs.getPortalContainer('Menu', 'container') | |
immediate | boolean | ||
initialActive | boolean | ||
offset | [number, number] | [0, 1] | |
onActiveChange | (active: boolean) => void | ||
placement | "left" | "right" | "bottom" | "top" | "top-start" | "top-end" | "left-start" | "left-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | ||
popperOptions | PopperPopperOptions | Options for Popper.js instance | |
popperUpdateKey | string | ||
springConfig | Partial<AnimationConfig> | { tension: 720, mass: 0.5 } |
Prop name | Type | Default | Description |
---|---|---|---|
color | string | ||
colorType | ColorTypes | ||
secondaryColor | string | ||
secondaryColorType | ColorTypes | ||
size | string | number | 16 |
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. | |
closeOnClick | boolean | true | |
colorType | ColorTypes | ||
disabled | boolean | Equivalent to button's disabled property. | |
index | number | ||
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 |
---|---|---|---|
active | boolean | ||
arrow | ArrowProps | ||
as | any | Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended. | |
buttonProps | MenuItemProps & { ref?: Ref<HTMLDivElement>; } | ||
container | HTMLElement | configs.getPortalContainer('SubMenu', 'container') | |
disableScrollLock | boolean | ||
immediate | boolean | ||
index | number | ||
initialActive | boolean | ||
label | ReactNode | ||
offset | [number, number] | [-1, 0] | |
onActiveChange | (active: boolean) => void | ||
placement | "left" | "right" | "bottom" | "top" | "top-start" | "top-end" | "left-start" | "left-end" | "right-start" | "right-end" | "bottom-start" | "bottom-end" | right-start | |
popperOptions | PopperPopperOptions | Options for Popper.js instance | |
popperUpdateKey | string | ||
springConfig | Partial<AnimationConfig> | { tension: 720, mass: 0.5 } |
Copyright © 2018-2025 Sea Labs