Timestamp

This low profile kit displays time. Elapsed, current, future, or otherwise.

Default


By default, the timestamp kit will display the date and time as shown here. If the date is NOT within the current year, the year will also be shown while dates in the current year will not show the year.

Hide Date


The showDate/show_date prop is set to true by default but can be set to false to hide the date.

Hide Time


The showTime/show_time prop is set to true by default but can be set to false to hide the time.

Show Current Year


Use the showCurrentYear/show_current_year prop to show the year even if it is the current year. This is set to false by default.

Show Timezones


The showTimezone/show_timezone prop can be used to show the timezone as well. This is set to false by default. NOTE: This prop must be used in conjunction with the timezone prop to specify which timezone to display.

Alignments


The align prop can be used to set alignment. This prop is set to 'left' by default.

Time Ago (Elapsed Variant)


Use variant elapsed to show time ago. This variant can be customized in several ways:

Use the optional showUser/show_user prop to show user as part of the text. When showing the user, pass in the user name using the text prop as shown. showUser/show_user is set to false by default.

Use the optional hideUpdated/hide_updated prop to hide the 'Last updated' text if needed.

Last Updated by (Updated Variant)


Use variant updated to show last updated at timestamp.

This variant can be customized using the optional showUser/show_user prop to show user as part of the text. When showing the user, pass in the user name using the text prop as shown.

showUser/show_user is set to false by default.

Last Updated by (Updated Variant) - Show Current Year


The updated variant can also be used in conjunction with the showCurrentYear/show_current_year prop to show the year even if it is the current year.

Last Updated by (Updated Variant) - Hide Date


The updated variant can also be used in conjunction with the showDate/show_date prop. This prop is set to true by default but can be set to false to hide the date.

Last Updated by (Updated Variant) - Hide Time


The updated variant can also be used in conjunction with the showTime/show_time prop. This prop is set to true by default but can be set to false to hide the time. This can also be used in conjunction with showCurrentYear/show_current_year to show the year even if it is the current year.

Unstyled


For alternative typography styles, you can pass a boolean prop called unstyled to the Timestamp kit and wrap it in any of our typography kits (Title, Body, etc.). This will allow the Timestamp kit to inherit any of our typography styles.


Things To Avoid

Leave the text style as is. Don’t use timestamps to display important or sensitive time information.

Available Props