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. | |
| index | number | ||
| initialIsExpanded | boolean | ||
| isExpanded | boolean | ||
| onIsExpandedChange | (isExpanded: boolean) => void | ||
| variant | AccordionVariants | AccordionVariants.Contained |
| Prop name | Type | Default | Description |
|---|---|---|---|
| animatedContainerProps | HTMLAttributes<HTMLDivElement> | {} | |
| as | any | Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended. | |
| immediate | boolean | ||
| springProps | Remap<ControllerUpdate<Lookup<any>> & { ref?: SpringRef<Lookup<any>>; }> | {} |
| Prop name | Type | Default | Description |
|---|---|---|---|
| animatedContainerProps | HTMLAttributes<HTMLDivElement> | {} | |
| 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. | |
| disableRotate | boolean | ||
| disabled | boolean | Equivalent to button's disabled property. | |
| getTransformFrom | (isExpanded: boolean) => CSSProperties | ||
| getTransformTo | (isExpanded: boolean) => CSSProperties | ||
| immediate | boolean | ||
| 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 | ||
| size | IconButtonSizes | ||
| springProps | Remap<ControllerUpdate<Lookup<any>> & { ref?: SpringRef<Lookup<any>>; }> | {} | |
| tooltip | ReactNode | ||
| tooltipProps | Omit<TooltipProps, "title" | "children"> | ||
| variant | IconButtonVariants |
| Prop name | Type | Default | Description |
|---|---|---|---|
| expandedIndexes | number[] | ||
| gap | number | 0 | Minimum gap value is 0 |
| initialExpandedIndexes | number[] | [] | |
| mode | AccordionGroupModes | AccordionGroupModes.Multiple | |
| onExpandedIndexesChange | (expandedIndexes: number[]) => void |
| 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. | |
| clickable | boolean | true | |
| leftElement | ReactNode | ||
| leftElementProps | HTMLAttributes<HTMLDivElement> | ||
| rightElement | ReactNode | ||
| rightElementProps | HTMLAttributes<HTMLDivElement> | ||
| titleProps | HTMLAttributes<HTMLDivElement> |
Copyright © 2018-2025 Sea Labs