--- id: slds.guidance.utilities.truncate title: Truncate Utilities description: SLDS text truncation utility classes summary: "Utilities for text truncation. Single-line truncation with ellipsis and container-based percentage truncation." artifact_type: reference domain: utilities topic: truncate content_format: structured complexity: intermediate audience: [implementer] tasks: [implement] refs: - slds.guidance.utilities - slds.guidance.overview.utilities - slds.guidance.utilities.line-clamp tags: [utilities, truncate, text-overflow, ellipsis] keywords: [slds-truncate, text overflow, ellipsis, truncation] --- # Truncate - Text Overflow Text truncation with ellipsis. ## Core Classes | Class | Purpose | |-------|---------| | `slds-truncate` | Truncates text at 100% container width with ellipsis | | `slds-truncate_container_25` | Truncates text at 25% of parent width | | `slds-truncate_container_33` | Truncates text at 33% of parent width | | `slds-truncate_container_50` | Truncates text at 50% of parent width | | `slds-truncate_container_66` | Truncates text at 66% of parent width | | `slds-truncate_container_75` | Truncates text at 75% of parent width | | `slds-has-flexi-truncate` | Applied to flex container to enable truncation in nested flexbox layouts | ## Common Patterns ### Table Cell Truncation ```html
| Very Long Customer Name That Will Be Truncated |