Open this example in the interactive library
Source code
<style>
.demo {
max-width: 14rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
</style>
<div class="demo">
A long filename that will not fit in the available space.pdf
</div>