Middle Truncate

Truncate long strings from the middle.

Default

Put the start of the value in MiddleTruncate and the last characters in a span beside it, in a flex row. The start shortens with an ellipsis; the end stays whole.

CALL-4506a1f2-9c3e-4b7d-8e21-5f0c9a3de550

Container width

Truncation follows the container. At full width the value shows in full with no ellipsis.

CALL-4506a1f2-9c3e-4b7d-8e21-5f0c9a3de550CALL-4506a1f2-9c3e-4b7d-8e21-5f0c9a3de550CALL-4506a1f2-9c3e-4b7d-8e21-5f0c9a3de550

End characters

Keep the part people recognise: a file extension, the last URL segment, or the last characters of an ID.

outbound-renewal-campaign-recording-2026-09-14.wavhttps://hooks.acme-insurance.com/voice/events/inboundagent_8f2c4b9e1a7d3f6c0e5b2a9d4c7f1e3b

In a list

Pass the truncated value as the EntityContent description. Pair it with a copy button so people can reuse the full value.

  • Call completed
    https://hooks.acme-insurance.com/voice/events/call-completed
  • Transcript ready
    https://hooks.acme-insurance.com/voice/events/transcript-ready
  • Campaign finished
    https://api.northwind.io/integrations/smallest/campaign-finished

Best practices

When to use

  • Use for long identifiers where the start and end carry recognition: call IDs, webhook URLs, file names, agent IDs.
  • Use ordinary truncation for natural-language labels, where the beginning carries the meaning.

Behavior

  • Keep the characters people recognise at the end: a file extension, the last URL segment, the last 6 characters of an ID.
  • Truncation follows the container; at full width the whole value shows with no ellipsis.

Accessibility

  • Put the full value in title and keep it in the accessible name. Provide a copy button ("Copy Call completed URL") when people are likely to reuse the exact value.