Coral is a thoroughly developed design system widely adopted by developers and designers for creating beautiful and user-friendly Sea internal products.
Copyright © 2018-2026 Sea Labs
Blogs
All blogs| Prop name | Type | Default | Description |
|---|---|---|---|
| activeIndex | number | ||
| as | any | Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended. | |
| collapse | boolean | ||
| flipKey | string | ||
| getTitleByIndex | (activeIndex: number) => string | ||
| immediate | boolean | ||
| initialActiveIndex | number | ||
| onChange | (activeIndex: number) => void | ||
| overlayElement | ReactElement<any, string | JSXElementConstructor<any>> | ||
| theme | Theme<StyledTheme> | { onLightBg: { ...styledDefaultTheme, }, onDarkBg: { ...styledDefaultTheme, interactions: { bgNeutralGeneral: { hover: alp(palette.white, 0.1), press: alp(palette.white, 0.2), selected: alp(palette.white, 0.1), }, bgNeutralStrong: { hover: alp(palette.white, 0.1), press: alp(palette.white, 0.2), selected: alp(palette.white, 0.1), }, bgTintSolid: { hover: alp(palette.white, 0.15), press: alp(palette.white, 0.3), selected: alp(palette.white, 0.15), }, bgTintTransparent: { hover: 0.15, press: 0.3, selected: 0.15 }, border: { hover: alp(palette.white, 0.15), press: alp(palette.white, 0.3), selected: alp(palette.white, 0.15) }, disabled: 0.3, }, }, } |
| 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 | neuForeInverse1st | Set color based on theme. If color is specified, that prop is used instead of this. |
| direction | ArrowDirections | ||
| disabled | boolean | Equivalent to button's disabled property. | |
| gradientBorderProps | GradientBorderProps | ||
| keyboardClickKeys | string[] | ||
| leftIcon | ReactNode | Element before the label. Equivalent to element on the label with some margin. | |
| 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 | number | ||
| rightIcon | ReactNode | Element after the label. Equivalent to element on the label with some margin. | |
| size | ButtonSizes | ||
| variant | ButtonVariants | Prefers naming it as variant because type is a known button html property. |
| 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. | |
| elevationLevel | number | 3 |
| 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. | |
| closeButtonProps | IconButtonProps | ||
| getTitleByIndex | (activeIndex: number) => string | ||
| itemsCountProps | LightboxItemsCountProps | ||
| showItemsCount | boolean | true | |
| titleProps | TextProps |
| 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. | |
| index | number | ||
| inlineSize | number | 80 | |
| 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 |
|---|---|---|---|
| arrowButton | ReactElement<LightboxArrowButtonProps, string | JSXElementConstructor<any>> | <LightboxArrowButton /> | |
| as | any | Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended. | |
| autoHideDelay | number | zoom/rotate controls, arrow buttons and header are hidden after this delay of no mouse activity defaults to 0 (no auto hide) | |
| container | HTMLElement | configs.getPortalContainer('Lightbox', 'container') | |
| disableFocusLock | boolean | ||
| disableScrollLock | boolean | ||
| elevationLevel | number | 3 | |
| header | ReactElement<LightboxHeaderProps, string | JSXElementConstructor<any>> |
| Prop name | Type | Default | Description |
|---|---|---|---|
| actionProps | HTMLAttributes<HTMLDivElement> & { as?: any; ref?: HTMLDivElement; } | ||
| as | any | Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended. | |
| containerProps | HTMLAttributes<HTMLDivElement> | ||
| description | ReactNode | ||
| descriptionProps | HTMLAttributes<HTMLParagraphElement> & { as?: any; ref?: HTMLParagraphElement; } | ||
| height | Height<string | number> | ||
| image | ReactNode | NextImgProps | ||
| imageProps | ImgHTMLAttributes<HTMLImageElement> & { as?: any; ref?: HTMLImageElement; } | ||
| imageSize | Height<string | number> | Will not applied if image is a ReactNode | |
| maxWidth | MaxWidth<string | number> | ||
| offsetTop | MarginTop<string | number> | ||
| title | ReactNode | ||
| titleProps | HTMLAttributes<HTMLDivElement> & { as?: any; ref?: 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. |
| Prop name | Type | Default | Description |
|---|---|---|---|
| initialRotation | Rotation | 0 | |
| initialScale | number | 1 | |
| initialTranslate | Translate | { x: 0, y: 0 } | |
| onRotationChange | (rotation: Rotation) => void | ||
| onScaleChange | (scale: number) => void | ||
| onTranslateChange | (translate: Translate) => void | ||
| rotation | Rotation | ||
| scale | number | ||
| scaleIndicatorDelay | number | 1000 | |
| showScaleIndicator | boolean | ||
| translate | Translate | ||
| zoomSteps | number[] | [0.1, 0.25, 0.4, 0.6, 0.8, 1, 1.2, 1.5, 2, 3, 4, 6, 8, 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. | |
| colorType | ColorTypes | neuForeInverse1st | Set color based on theme. If color is specified, that prop is used instead of this. |
| disabled | boolean | Equivalent to button's disabled property. | |
| gradientBorderProps | GradientBorderProps | ||
| 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 | ||
| rotationInterval | number | -90 | |
| size | IconButtonSizes | ||
| tooltip | ReactNode | ||
| tooltipProps | Omit<TooltipProps, "title" | "children"> | ||
| variant | IconButtonVariants |
| Prop name | Type | Default | Description |
|---|---|---|---|
| onDrag | Handler<"drag"> | ||
| onDragEnd | Handler<"drag"> & DragEventHandler<Element> | ||
| onDragStart | Handler<"drag"> & DragEventHandler<Element> | ||
| onHover | Handler<"move"> | ||
| onMove | Handler<"move"> | ||
| onMoveEnd | Handler<"move"> | ||
| onMoveStart | Handler<"move"> | ||
| onPinch | Handler<"pinch"> | ||
| onPinchEnd | Handler<"pinch"> | ||
| onPinchStart | Handler<"pinch"> | ||
| onScroll | Handler<"scroll"> | ||
| onScrollEnd | Handler<"scroll"> | ||
| onScrollStart | Handler<"scroll"> | ||
| onWheel | Handler<"wheel"> | ||
| onWheelEnd | Handler<"wheel"> | ||
| onWheelStart | Handler<"wheel"> |
Copyright © 2018-2026 Sea Labs