Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blade components #5

Open
joshmanders opened this issue Oct 27, 2024 · 0 comments
Open

Blade components #5

joshmanders opened this issue Oct 27, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@joshmanders
Copy link
Member

Building off of #4 this also opens up the ability to create a few Blade components to add a bunch of nice goodies.

You could do

<x-og-image template="example" title="hello world" />

And this would generate an image tag with the route url already set in it. This component would need to be aware of what native props are on an <img /> so that way it proxies those down to the underlining image tag, then knows template is a special property, and the rest should be treated as og-image props.

This could also give us a meta tag helper

<x-og-image.meta template="example" title="hello world" />

Which would generate not only the proper <meta /> but also a <link rel="preload" as="image" /> tags so that way the preload will generate the image and cache it so that way the very first visit to that page will handle that, so all crawlers and that are faster fetching.

@joshmanders joshmanders added the enhancement New feature or request label Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant