Timeline

Designer doc
Timeline component displays a sequence of events in chronological order.

Example

Basic Usage
View code
Variants
You can specify variant as contained or text. contained will be the default option.
View code
Dot sizes
You can specify dotSize as small, medium or large. large will be the default option.
View code
View code
TimelineContent and TimelineInfo
You can use TimelineContent to display data inside TimelineItem.
View code
Alternatively, you can use TimelineInfo to display a different structure inside TimelineItem.
View code
Colors
For TimelineStatus and TimelineDot components, you can specify colorType prop as theme colors like primary, error, success. If none of the color type fits, you can specify color prop.
View code
Adding Badge and Tooltip
View code
Customizing line connector
You can override connector prop with TimelineConnector or anything else. Note that last TimelineItem by default doesn’t render the TimelineConnector. However, you can specify connector prop on it to display dangling line.
View code
Connector gap
You can specify connectorGap as a number to specify the gap.
View code
Center alignment
Center align the dot
View code
Expansible timeline
View code

References

API

Timeline
Prop nameTypeDefaultDescription
alignTimelineAlignstop
asany
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
connectorGapnumber0
dotSizeTimelineDotSizeslarge
variantTimelineVariantscontained
TimelineConnector
Prop nameTypeDefaultDescription
isLastboolean
TimelineConnectorBefore
Prop nameTypeDefaultDescription
isFirstboolean
TimelineContent
Prop nameTypeDefaultDescription
asany
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
headerPropsHTMLAttributes<HTMLDivElement> & { ref?: Ref<HTMLDivElement>; }
innerPropsHTMLAttributes<HTMLDivElement> & { ref?: Ref<HTMLDivElement>; }
labelReactNode
timeReactNode
TimelineDot
Prop nameTypeDefaultDescription
asany
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
colorstring
colorTypeColorTypesaccPri1st
sizenumber
TimelineInfo
Prop nameTypeDefaultDescription
asany
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
contentPropsBaseTypographyProps
remarkReactNode
remarkPropsBaseTypographyProps
statusReactNode
statusPropsBaseTypographyProps
titleReactNode
titlePropsBaseTypographyProps
TimelineItem
Prop nameTypeDefaultDescription
asany
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
cardPropsHTMLAttributes<HTMLDivElement> & { ref?: Ref<HTMLDivElement>; }
connectorReactNode
connectorBeforeReactNode
dotReactNode
indexnumber
sequencePropsHTMLAttributes<HTMLDivElement> & { ref?: Ref<HTMLDivElement>; }
TimelineStatus
Prop nameTypeDefaultDescription
asany
Tag or component, but a simple tag (i.e. built-in components, e.g. div, span) is recommended.
colorstring
colorTypeColorTypesaccPri1st
remarkReactNode
remarkPropsHTMLAttributes<HTMLDivElement> & { ref?: Ref<HTMLDivElement>; }
statusPropsHTMLAttributes<HTMLDivElement> & { ref?: Ref<HTMLDivElement>; }
    Example
    Example
    Basic Usage
    Basic Usage
    Variants
    Variants
    Dot sizes
    Dot sizes
    TimelineContent and TimelineInfo
    TimelineContent and TimelineInfo
    Colors
    Colors
    Adding Badge and Tooltip
    Adding Badge and Tooltip
    Customizing line connector
    Customizing line connector
    Connector gap
    Connector gap
    Center alignment
    Center alignment
    Expansible timeline
    Expansible timeline
    References
    References
    API
    API
    Timeline
    Timeline
    TimelineConnector
    TimelineConnector
    TimelineConnectorBefore
    TimelineConnectorBefore
    TimelineContent
    TimelineContent
    TimelineDot
    TimelineDot
    TimelineInfo
    TimelineInfo
    TimelineItem
    TimelineItem
    TimelineStatus
    TimelineStatus
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