PHPackages                             h1ch4m/blade-component-previewer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. h1ch4m/blade-component-previewer

ActiveLibrary[Templating &amp; Views](/categories/templating)

h1ch4m/blade-component-previewer
================================

A Laravel package for visually creating, editing, and previewing Blade components with live editing of Blade, CSS, and JS.

v1.0.0(7mo ago)00MITJavaScriptPHP &gt;=8.0

Since Sep 14Pushed 7mo agoCompare

[ Source](https://github.com/Hicham-1/blade-component-previewer)[ Packagist](https://packagist.org/packages/h1ch4m/blade-component-previewer)[ RSS](/packages/h1ch4m-blade-component-previewer/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

Blade Component Previewer 🏗️
============================

[](#blade-component-previewer-️)

Contents
--------

[](#contents)

- [Blade Component Previewer 🏗️](#blade-component-previewer-%EF%B8%8F)
    - [Contents](#contents)
        - [Image one:](#image-one)
        - [Image two:](#image-two)
    - [Features](#features)
    - [Installation](#installation)
    - [Usage](#usage)
    - [Configuration](#configuration)
    - [License](#license)

A Laravel package for visually creating, editing, and previewing Blade components with live editing of Blade, CSS, and JS.

### Image one:

[](#image-one)

[![Blade Component Previewer 1](./public/docs/image1.png)](./public/docs/image1.png)

### Image two:

[](#image-two)

[![Blade Component Previewer 2](./public/docs/image2.png)](./public/docs/image2.png)

Features
--------

[](#features)

- List all available Blade components
- Create new components (Blade, CSS, JS, PHP class)
- Edit component Blade, CSS, and JS in the browser
- Live preview with custom props
- Delete components
- Simple, self-contained UI

Installation
------------

[](#installation)

> **Note:**
> This package uses 'Ace Editor (AceJS)' for in-browser code editing. No extra installation is required, as 'AceJS' is bundled with the package UI.
>
> **Requirements:**
>
> - PHP &gt;= 8.0
> - Laravel &gt;= 8.0
> - Composer

1. **Require the package via Composer:**

    ```
    composer require h1ch4m/blade-component-previewer --dev
    ```
2. **Publish the config (optional):**

    ```
    php artisan vendor:publish --provider="H1ch4m\BladeComponentPreviewer\BladeComponentPreviewerServiceProvider" --tag=config
    ```
3. **Access the previewer:**

    Visit `/blade-component-previewer` in your browser (while your dev server is running).
4. **⚠️ Add @stack to your project**

    Add `@stack` (e.g. `@stack('styles')` and `@stack('scripts')`) to your layout before body

Usage
-----

[](#usage)

- **Create a new component:**
    Click "New Component", enter a name (e.g., `ButtonComponent`), and start editing.
    When you create a new component, the following files will be generated automatically (the paths based on config file):

    - Blade view file (`resources/views/components/{name}.blade.php`).
    - CSS file (`public/css/components/{name}.css`).
    - JS file (`public/js/components/{name}.js`).
    - PHP class (`app/View/Components/BladeComponentPreviewer/{Name}.php`).
- **Edit Blade, CSS, JS:**
    Use the in-browser editors to modify your component files.
- **Preview:**
    The preview updates live as you edit.
- **Props:**
    Add and edit props to test your component with different data, and those props will added as params in your component class.
- **Save/Delete:**
    Use the "Save" and "Delete" buttons to persist or remove components.

Configuration
-------------

[](#configuration)

You can customize paths and namespaces in `config/blade-component-previewer.php`:

```
return [
    'bladePath' => 'components',      // Blade views directory
    'cssPath' => 'css/components',    // Public CSS directory
    'jsPath' => 'js/components',      // Public JS directory
    'classNamespace' => 'App\\View\\Components\\BladeComponentPreviewer',
    'classPath' => 'View/Components/BladeComponentPreviewer',
];
```

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](LICENSE).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance62

Regular maintenance activity

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

237d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/eff0f67f3e9612220cb59a80ef2a290f2b092bcb63caa65b94e2607e92ca73a5?d=identicon)[h1ch4m](/maintainers/h1ch4m)

---

Top Contributors

[![Hicham-1](https://avatars.githubusercontent.com/u/52961783?v=4)](https://github.com/Hicham-1 "Hicham-1 (22 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/h1ch4m-blade-component-previewer/health.svg)

```
[![Health](https://phpackages.com/badges/h1ch4m-blade-component-previewer/health.svg)](https://phpackages.com/packages/h1ch4m-blade-component-previewer)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[robsontenorio/mary

Gorgeous UI components for Livewire powered by daisyUI and Tailwind

1.5k454.7k15](/packages/robsontenorio-mary)[livewire/blaze

A tool for optimizing Blade component performance by folding them into parent templates

688221.3k17](/packages/livewire-blaze)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[rareloop/lumberjack-core

A powerful MVC framework for the modern WordPress developer. Write better, more expressive and easier to maintain code

42155.0k19](/packages/rareloop-lumberjack-core)[konekt/html

HTML and Form Builders for the Laravel Framework

24403.2k5](/packages/konekt-html)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
