hotwired-laravel / turbo-laravel

This package gives you a set of conventions to make the most out of Hotwire in Laravel.
https://turbo-laravel.com
MIT License
793 stars 48 forks source link

Add a new Blade component for the new View Transitions API #139

Closed tonysm closed 6 months ago

tonysm commented 7 months ago

Turbo 8 supports View Transitions, so I think we should add a new meta tag helper.

Not sure what the naming should be (I try to follow the same naming in Rails, but they don't have that yet), so maybe:

<x-turbo::prefers-view-transition />

?

This should render:

<meta name="view-transition" content="same-origin" />