TinyBase logoTinyBase β

ForwardCheckpointsProps

ForwardCheckpointsProps props are used for components that refer to a list of future checkpoints in a Checkpoints object, such as the ForwardCheckpointsView component.

{
  checkpoints?: CheckpointsOrCheckpointsId;
  checkpointComponent?: ComponentType<CheckpointProps>;
  getCheckpointComponentProps?: (checkpointId: Id) => ExtraProps;
  separator?: ReactElement | string;
  debugIds?: boolean;
}
TypeDescription
checkpoints?CheckpointsOrCheckpointsId

The Checkpoints object to be accessed: omit for the default context Checkpoints object, provide an Id for a named context Checkpoints object, or provide an explicit reference.

checkpointComponent?ComponentType<CheckpointProps>

A component for rendering each checkpoint in the Checkpoints object.

getCheckpointComponentProps?(checkpointId: Id) => ExtraProps

A function for generating extra props for each checkpoint component based on its Id.

separator?ReactElement | string

A component or string to separate each Checkpoint component.

debugIds?boolean

Whether the component should also render the Ids of the checkpoints to assist with debugging.

Since

v1.0.0