Skip to main content

ActivityTracker

Displays a visual representation of the user's activity.

github
View source code
import { ActivityTracker } from '@uhg-abyss/mobile';
    () => {
    return <ActivityTracker heading="Activity Tracker" showActiveStep={true} />;
    };

    Variants​

    Use the variant prop to determine the variant of the activity tracker. The twoweeks variant displays a 14-day option that does not contain an showActiveStep. The oneweek variant is the default.

    Completed Steps​

    Use the completedSteps prop to determine the steps that have been completed.

    ActivityTracker Props​

    NameTypeDefaultRequiredDescription
    completedSteps
    number[] | undefined
    --
    Completed steps in the activity tracker
    heading
    string | undefined
    --
    Heading of the activity tracker
    showActiveStep
    boolean | undefined
    true
    -
    Highlighted current day of the week
    variant
    'oneweek' | 'twoweeks' | undefined
    'oneweek'
    -
    Change the amount of days in the activity tracker

    ActivityTracker Classes​

    Class NameDescription
    abyss-activity-tracker-rootRoot activity tracker element
    abyss-activity-tracker-headingHeading container
    abyss-activity-tracker-selection-circleCircle indicating the current day of the week in the activity tracker
    abyss-activity-tracker-success-circleCircle indicating a successfully completed step
    abyss-activity-tracker-week-day-textText displaying the day of the week.
    abyss-activity-tracker-date-labelText inside the circle

    ActivityTracker Tokens​

    Token NameValue
    activity-tracker.color.icon.completed
    #007000
    activity-tracker.color.text.heading
    #323334
    activity-tracker.color.text.date
    #4B4D4F
    activity-tracker.color.text.day-of-week
    #4B4D4F
    activity-tracker.color.border.day.default
    #4B4D4F
    activity-tracker.color.border.day.today
    #002677
    activity-tracker.border-radius.day
    500
    activity-tracker.border-width.day.today
    2
    activity-tracker.border-width.day.incomplete
    0.5
    activity-tracker.sizing.all.icon.completed
    40
    activity-tracker.sizing.all.day
    40
    activity-tracker.spacing.gap.vertical.container
    16
    activity-tracker.spacing.gap.vertical.content
    8
    activity-tracker.spacing.padding.horizontal.container
    16

    ActivityTracker Classes​

    V2V1Status
    activity-tracker-date-labelactivity-tracker-date-labelUnchanged
    activity-tracker-headingactivity-tracker-titleRenamed
    activity-tracker-rootactivity-tracker-rootUnchanged
    activity-tracker-selection-circleactivity-tracker-selection-circleUnchanged
    activity-tracker-success-circleactivity-tracker-success-circleUnchanged
    activity-tracker-week-day-textactivity-tracker-week-day-textUnchanged

    ActivityTracker Props​

    V2V1Status
    completedStepsstepsUnchanged
    headingtitleRenamed
    showActiveStepshowActiveStepUnchanged
    variantvariantUnchanged
    Table of Contents