Timeline API

API documentation for Timeline component

Timeline#

Props#

Defines valid properties in Timeline component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: TimelineInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: TimelineInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<TimelinePassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: TimelineInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Interfaces#

Defines passthrough(pt) options of Timeline component.

nametypedefaultdescription
rootTimelinePassThroughType<InputHTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.
eventTimelinePassThroughType<InputHTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the event's DOM element.
contentTimelinePassThroughType<InputHTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the content's DOM element.
oppositeTimelinePassThroughType<InputHTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the opposite's DOM element.
separatorTimelinePassThroughType<InputHTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the separator's DOM element.
markerTimelinePassThroughType<InputHTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the marker's DOM element.
connectorTimelinePassThroughType<InputHTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the connector's DOM element.

Types#

Instance of Timeline component.

values
ComponentInstance<TimelineProps, TimelineState, TimelineExposes>

TimelineEvent#

Props#

Defines valid properties in TimelineEvent component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: TimelineEventInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: TimelineEventInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<TimelineEventPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: TimelineEventInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by TimelineEvent component.

nametypedefaultdescription
timelineTimelineInstance
null
The Timeline component instance.

Interfaces#

Defines passthrough(pt) options of TimelineEvent component.

nametypedefaultdescription
rootTimelineEventPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of TimelineEvent component.

values
ComponentInstance<TimelineEventProps, TimelineEventState, TimelineEventExposes>

TimelineContent#

Props#

Defines valid properties in TimelineContent component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: TimelineContentInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: TimelineContentInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<TimelineContentPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: TimelineContentInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by TimelineContent component.

nametypedefaultdescription
timelineTimelineInstance
null
The Timeline component instance.

Interfaces#

Defines passthrough(pt) options of TimelineContent component.

nametypedefaultdescription
rootTimelineContentPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of TimelineContent component.

values
ComponentInstance<TimelineContentProps, TimelineContentState, TimelineContentExposes>

TimelineOpposite#

Props#

Defines valid properties in TimelineOpposite component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: TimelineOppositeInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: TimelineOppositeInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<TimelineOppositePassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: TimelineOppositeInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by TimelineOpposite component.

nametypedefaultdescription
timelineTimelineInstance
null
The Timeline component instance.

Interfaces#

Defines passthrough(pt) options of TimelineOpposite component.

nametypedefaultdescription
rootTimelineOppositePassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of TimelineOpposite component.

values
ComponentInstance<TimelineOppositeProps, TimelineOppositeState, TimelineOppositeExposes>

TimelineSeparator#

Props#

Defines valid properties in TimelineSeparator component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: TimelineSeparatorInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: TimelineSeparatorInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<TimelineSeparatorPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: TimelineSeparatorInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by TimelineSeparator component.

nametypedefaultdescription
timelineTimelineInstance
null
The Timeline component instance.

Interfaces#

Defines passthrough(pt) options of TimelineSeparator component.

nametypedefaultdescription
rootTimelineSeparatorPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of TimelineSeparator component.

values
ComponentInstance<TimelineSeparatorProps, TimelineSeparatorState, TimelineSeparatorExposes>

TimelineMarker#

Props#

Defines valid properties in TimelineMarker component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: TimelineMarkerInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: TimelineMarkerInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<TimelineMarkerPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: TimelineMarkerInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by TimelineMarker component.

nametypedefaultdescription
timelineTimelineInstance
null
The Timeline component instance.

Interfaces#

Defines passthrough(pt) options of TimelineMarker component.

nametypedefaultdescription
rootTimelineMarkerPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of TimelineMarker component.

values
ComponentInstance<TimelineMarkerProps, TimelineMarkerState, TimelineMarkerExposes>

TimelineConnector#

Props#

Defines valid properties in TimelineConnector component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: TimelineConnectorInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: TimelineConnectorInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<TimelineConnectorPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: TimelineConnectorInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by TimelineConnector component.

nametypedefaultdescription
timelineTimelineInstance
null
The Timeline component instance.

Interfaces#

Defines passthrough(pt) options of TimelineConnector component.

nametypedefaultdescription
rootTimelineConnectorPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of TimelineConnector component.

values
ComponentInstance<TimelineConnectorProps, TimelineConnectorState, TimelineConnectorExposes>

useTimeline#

Types#

Instance of useTimeline headless.

values
HeadlessInstance<useTimelineProps, useTimelineState, useTimelineExposes>