Skip to content

Type error with form.Form component #32

@Mnigos

Description

@Mnigos
<form.Form className="flex flex-col gap-4"></form.Form>

I tried to do something like that and I got a type error
Type '{ children: Element[]; className: string; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Component<unknown, unknown, any>> & Readonly<unknown> & Readonly<{ children?: ReactNode; }>'. Property 'className' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Component<unknown, unknown, any>> & Readonly<unknown> & Readonly<{ children?: ReactNode; }>'.

But on browser it works. It's just error with type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions