https://github.com/backstagephp/components
A collection of beautiful website components.
https://github.com/backstagephp/components
Last synced: 15 days ago
JSON representation
A collection of beautiful website components.
- Host: GitHub
- URL: https://github.com/backstagephp/components
- Owner: backstagephp
- License: mit
- Created: 2025-10-29T14:35:08.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-11-10T18:54:20.000Z (3 months ago)
- Last Synced: 2025-11-10T20:33:07.986Z (3 months ago)
- Language: PHP
- Size: 109 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# A collection of beautiful website components.
From the makers of Backstage.
## Installation
If you using backstage/cms these components are including by default.
```bash
composer require backstage/components
```
Add the following code to app.js.
```js
import.meta.glob('../views/components/**/*.css', { eager: true });
import.meta.glob('../views/components/**/*.js', { eager: true });
```
Publishes a component
```bash
php artisan backstage:component {component?}
```
# Contributing
If you made a website component follow these steps.
**Add a subtree for the component repository**
```bash
git subtree add --prefix components/CounterComponent git@github.com:backstagephp/Counter-Component.git main --squash
```
After you made changes to the component push to both repositories:
```bash
git add .
git commit -m "Changed colors for heading"
git push
git subtree push --prefix components/CounterComponent git@github.com:backstagephp/Counter-Component.git main
```
You can also add the repository to the push-to-subtrees.yml Github action.