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

[1.x] Remove "Breeze" component prefix #179

Merged
merged 3 commits into from
Sep 5, 2022

Conversation

jessarcher
Copy link
Member

@jessarcher jessarcher commented Aug 10, 2022

Similar to laravel/jetstream#1117, the PR removes the "Breeze" prefix from the component imports in the Vue stack to give users a better sense of ownership over the scaffolding.

Additionally, I've renamed the Authenticated and Guest layout components to AuthenticatedLayout and GuestLayout respectively. This makes the component names match the name they are imported with. The React stack was missing the suffix on the import, so I've added this in, which I think makes it much clearer in the template section.

As with laravel/jetstream#1117, after the rename, there were some components that overlapped with native HTML elements. While this works in practice, Evan You recommends against it, so I've renamed the following components:

  • Button -> PrimaryButton
  • Input -> TextInput
  • Label -> InputLabel

While this isn't strictly required with the Blade stack, I've also renamed the components there for consistency.

The Jetstream PR explains the motivation behind these choices a little more.

@jessarcher jessarcher marked this pull request as ready for review September 5, 2022 08:14
@taylorotwell taylorotwell merged commit 3b601e8 into 1.x Sep 5, 2022
@taylorotwell taylorotwell deleted the remove-breeze-component-prefix branch September 5, 2022 14:26
drewmw5 pushed a commit to drewmw5/breeze that referenced this pull request Nov 11, 2022
* Remove Breeze prefix from components

* Standardize layout components

* Rename components that conflict with HTML elements
slimani-dev pushed a commit to slimani-dev/breeze that referenced this pull request Jan 21, 2023
* Remove Breeze prefix from components

* Standardize layout components

* Rename components that conflict with HTML elements
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