Date Badge

The Date Badge component provides a reusable pattern for datebadge in the interface.

Datebadge

Display a datebadge in it's simpliest form.

Apr 28
Apr 28
Apr 28

Datebadge - Small

Display a datebadge in it's simpliest form, small variant.

Apr 28

Datebadge - Large

Display a datebadge in it's simpliest form, large variant.

Apr 28

Datebadge - Translucent

Display a datebadge in it's simpliest form, translucent variant.

Apr 28
Apr 28
Apr 28

API

Parameter Default Description
false A date string in any format or a unix timestamp.
md The size of the datebadge. Can be either 'sm', 'md' or 'lg'.
false If true, the datebadge will have a translucent background.
light The color of the datebadge. Can be either 'light', 'dark', 'primary', 'secondary'.

CSS API

Variable Default Type Values Description
var(--border-radius) range - Border Radius
var(--border-width) range - Size
var(--space) range - Base spacing unit. Used for padding and margin inside components.
var(--color--primary) color - Primary
var(--color--secondary) color - Secondary
var(--color--surface) color - Surface
var(--color--surface-contrast) color - Used for text and icons on surface backgrounds with less contrast.
var(--color--surface-border) color - Manual companion token for borders on surface elements.
var(--corner-shape) select square, round, squircle, circular, bevel, scoop Corner Shape
var(--color--primary-contrast) color - Primary Contrast
var(--color--primary-border) color - Manual companion token for primary border and hover states.
var(--color--secondary-contrast) color - Secondary Contrast
var(--color--secondary-border) color - Manual companion token for secondary border and hover states.