puck icon indicating copy to clipboard operation
puck copied to clipboard

Header override requires grid CSS

Open chrisvxd opened this issue 1 year ago • 1 comments

Overriding the header requires specifying grid CSS. The user shouldn't need to know about the parent CSS in order to override the header.

chrisvxd avatar Nov 15 '24 09:11 chrisvxd

Yes, currently we can only add style={{ gridArea: 'header' }} to support the one line through header. And it is not mentioned in the document.

The demo code should be:

const overrides = {
  header: ({ actions }) => (
    <header style={{ gridArea: 'header' }}>
      <span>My header</span>
      <div>{actions}</div>
    </header>
  ),
};

henrycjchen avatar Sep 12 '25 07:09 henrycjchen