Skip to content

EuiPageTemplate type issues #6351

Closed

Description

@flash1293

The EuiPageTemplate component has some mistmatched types:

  • component property which is not respected
  • mainProps doesn't have a component property (but it works when specified)
    <EuiPageTemplate
      component="main" // type checks, but not respected
      mainProps={{ component: 'main' }} // type error, but respected
    />

Activity

  1. self-assigned this
    on Nov 8, 2022
  2. cee-chen commented on Nov 8, 2022

    @cee-chen
    Contributor

    I'm not 100% sure what Caroline's original intentions were with page template but I would assume she would want component="main" to work as a top level prop, so I'll proceed with the bugfix as such (vs. updating the types)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions