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

Update Header.php #734

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update Header.php #734

wants to merge 1 commit into from

Conversation

ekrist1
Copy link
Contributor

@ekrist1 ekrist1 commented Dec 7, 2024

This modification allows you to configure H1 to H5 for the $title while maintaining the existing functionality of the component.

// This will render an h1 // This will render an h3 // This will render an h2 (default)

Let me know if you consider this a breaking change since it sets the title output from a div to a H1-H5 tag.

This modification allows you to configure H1 to H5 for the $title while maintaining the existing functionality of the component.

<x-header title="My Title" :heading-level="1" />  // This will render an h1
<x-header title="My Title" :heading-level="3" />  // This will render an h3
<x-header title="My Title" />  // This will render an h2 (default)
@robsontenorio
Copy link
Owner

Thanks for this!

I am delaying it for now because of upcoming maryUI v2 (daisyUI 5 + Tailwind 4).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants