Skip to content

CSS configuration not worked in react starter kit #196

@shankhadevpadam

Description

@shankhadevpadam

Environment Details

  • PHP Version: 8.5..3
  • Laravel Version: 12.53.0
  • React or Vue Version: 19.2.3
  • Inertia.js Version: 2.3.17
  • Inertia Modal Version: 2.0.0-beta.1

Bug Report

Description

The CSS option or position option does not work in laravel starter kit React with 2.0.0-beta.1 For example i have set up

<ModalLink
    href={`/permit-manager/departure/${departure.id}`}
    closeExplicitly={true}
    maxWidth="5xl"
    position="center"
    prefetch="hover"
>
    <Button
        size="sm"
        variant="outline"
    >
        <Eye /> View
    </Button>
</ModalLink>

The maxWidth, position, and props did not work. I set up the inertia modal as described in the docs. Even though I pass the position props option, the modal doesn't pop up in the center of the screen. Same for size and another option also.

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