Skip to content

Framework7 React typings does not contain ref prop for components #3827

@juanreynolds

Description

@juanreynolds

ref props are missing on the components in the typing files.

I want to add a resize hook that implements ResizeObserver to CardHeader. There are no ref props added to the typings files and I get the error Property 'ref' does not exist on type 'IntrinsicAttributes & CardHeaderProps & { children?: ReactNode; }'

If I add the ref to the typings file and I run the code the ref properly resolves and I can get access to the underlying div element. The documentation also has an example of using refs for Photo Browser but the example gives the same issue as ref is also not exposed ont he Photo Browser component in its typing file.

Metadata

Metadata

Assignees

No one assigned

    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