MDK Logo
ReferenceUIComponents

Display Components

Data display and formatting components

Components for displaying and formatting data.

Prerequisites

  • Complete the installation
  • Import styles: import '@tetherto/mdk-react-devkit/styles.css'

Components

Avatar

Circular avatar surface that shows a profile image with a graceful text fallback when the image fails to load.

agent-ready

AvatarFallback

Initials or icon placeholder shown inside <[**Avatar**](/reference/ui/components/display/#avatar)> while the image loads or when no image is available.

agent-ready

AvatarImage

Profile image slot inside <[**Avatar**](/reference/ui/components/display/#avatar)> — renders src and triggers the fallback on load failure.

agent-ready

Badge

Badge component - Display badge with number or dot

agent-ready

Props

PropTypeRequiredDefaultDescription
childrenReact.ReactNode-Badge content (wraps children with badge)
countnumber | undefined-Number to display in badge If > overflowCount, will show "overflowCount+"
overflowCountnumber | undefined99Maximum count to display
showZeroboolean | undefinedfalseWhether to show badge when count is 0
dotboolean | undefinedfalseShow badge as a dot
textstring | undefined-Custom badge content (overrides count)
colorColorVariant | undefined'primary'Color variant
sizeComponentSize | undefined'md'Badge size
offset[number, number] | undefined[0, 0]Offset position [x, y] in pixels
squareboolean | undefinedfalseSquare badge (no border-radius)
classNamestring | undefined-Custom className for badge
wrapperClassNamestring | undefined-Custom className for wrapper
titlestring | undefined-Badge title for accessibility
status"success" | "warning" | "error" | "default" | "processing" | undefined-Status badge (small dot badge with text)

BtcAveragePrice

Read-only BTC average price label for reporting toolbars.

agent-ready

Props

PropTypeRequiredDefaultDescription
pricenumber | null-BTC price in USD; formatted with grouping and no decimal places. When null, undefined, non-finite, or negative, the…
labelstring-Label for the BTC average price.

DataLabel

Read-only period label (PERIOD: start - end) with timezone-aware dates.

agent-ready

Props

PropTypeRequiredDefaultDescription
startDateDate | null-Range start; formatted in the active timezone (dd/MM/yy).
endDateDate | null-Range end; formatted in the active timezone (dd/MM/yy).
labelstring-Label text; defaults to PERIOD.

Indicator

Indicator component - display status with colored background and label

agent-ready

Props

PropTypeRequiredDefaultDescription
color"red" | "gray" | "blue" | "yellow" | "green" | "purple" | "amber" | "slate" | undefined'gray'Color variant of the indicator
sizeComponentSize | undefined'md'Size variant of the indicator
classNamestring | undefined-Custom className for the root element
verticalboolean | undefinedfalseWhen true, adds extra spacing between child elements and stacks them vertically. Useful for displaying multiple pieces…
childrenReact.ReactNode-Children content (can include text, icons, multiple elements)
onClick(VoidFunction & React.MouseEventHandler<HTMLDivElement>) | undefined-Click handler

Tag

Tag component - display labels, categories, or status

agent-ready

Props

PropTypeRequiredDefaultDescription
color"red" | "blue" | "green" | "amber" | "dark" | undefined'dark'Color variant of the tag
classNamestring | undefined-Custom className for the root element
childrenReact.ReactNode-Children content

Typography

Typography component for consistent text styling

agent-ready

Props

PropTypeRequiredDefaultDescription
variant"body" | "caption" | "secondary" | "heading1" | "heading2" | "heading3" | undefined'body'Typography variant
size"sm" | "md" | "lg" | "xs" | "xl" | "2xl" | "3xl" | "4xl" | undefinedundefined (uses variant default)Text size
weight"medium" | "normal" | "light" | "semibold" | "bold" | undefinedundefined (uses variant default)Font weight
alignTextAlign | undefined-Text alignment
color"success" | "warning" | "error" | "primary" | "default" | "muted" | undefined-Text color variant
truncateboolean | undefined-Truncate text with ellipsis
classNamestring | undefined-Custom className

On this page