Skip to content

Placement expects wrong type in Vue 3 #3345

@filipbekic01

Description

@filipbekic01

Defining Vue component and passing Placement as one of props, gives a wrong type warning.

...
defineProps<{
    placement: Placement;
}>()
...
<Test :placement="bottom-start" />
Image

It is wierd that it expects object because obviously Placement is supposed to be a string, here is image of type:

Image

Using all latests versions Vue, FloatingUI as of today.

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