Skip to content

Impossible to wrap Header, Content and FooterΒ #13

@Foprta

Description

@Foprta

It's impossible to wraph Header, Content and Footer with custom components.

Because of te getItem realization its impossible to render something like that:

const CustomHeader = (props) => {
  return <Header className="my-custom-class" {...props}/>
}

<Portal>
  <Sheet>
    <CustomHeader />
  </Sheet>
</Portal>

May be we could rely on displayName or smth like that instead of type in getItem?

const getItem = (
   ...
   child.type === Component
   ...
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions