-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
Description
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
...
}
Reactions are currently unavailable