There are two ways of inserting line breaks into a grid cell. Either by setting the css property white-space (to something like pre or pre-line) or by defining a custom renderer (in your case Iād recommend a lit renderer).
Maybe a note regarding the white-space: if you want to apply it only depending on the content or only for some columns, you will need a part name generator for that column. The respective css will then need to target that specific part using the ::part selector, for instance
vaadin-grid::part(ws-normal) { /* part name generator returned "ws-normal" */
white-space: normal;
}
vaadin-grid::part(ws-pre) { /* part name generator returned "ws-pre" */
white-space: pre;
}
/* ... and so on ...*/