Skip to content

How to allow cells to have multi-line text? #374

@rau

Description

@rau

Hey, currently trying to make my cells work with multi-line text (i.e. respect whitespace pre-wrap).

I can't figure out how to do that. Here's the code I'm trying, but it's not working.

Is there a prop I can enable on the spreadsheet component that allows my cells to have multi-line text?

<Spreadsheet
  data={data}
  onChange={handleDataChange}
  onBlur={handleBlur}
  columnLabels={columnLabels}
  className='!whitespace-pre'
  hideRowIndicators={true}
/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions