Skip to content
This repository was archived by the owner on Oct 19, 2023. It is now read-only.
This repository was archived by the owner on Oct 19, 2023. It is now read-only.

Could we separate the renderHeader for the bool and function? #25

@gabrielbull

Description

@gabrielbull

renderHeader: oneOfType([bool, func]),

I think it would be more explicit if there was a different property for rendering the default header and renderHeader. The common way would be to have a prop header for the boolean and the renderHeader prop handle the render header function. We could also have a HeaderComponent prop to pass a component as the header.

So we would potentially have 3 properties to pass the header:

    header: bool,
    renderHeader: func,
    HeaderComponent: node

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions