CSS Elipsis
div {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
Determined Dotterel
div {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
const truncate = (str, n) => {
return str?.length > n ? str.substr(0, n - 1) + "..." : str;
};