Skip to content

question: custom layout does what exactly? #53

Answered by rwieruch
proddy asked this question in Q&A
Discussion options

You must be logged in to vote

Only when layout={{ custom: true }} is set, one can give the cells in the theme a custom width:

    const theme = useTheme({
      BaseCell: `
        &:nth-of-type(1) {
          min-width: 35%;
          width: 35%;
        }

        &:nth-of-type(2), &:nth-of-type(3), &:nth-of-type(4) {
          min-width: 15%;
          width: 15%;
        }

        &:nth-of-type(5) {
          min-width: 20%;
          width: 20%;
        }
      `,
    });

If it is not set, the cells are just divided equally.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@proddy
Comment options

@proddy
Comment options

Answer selected by proddy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants