bnussbau / laravel-trmnl-blade
Blade Components on top of the TRMNL Design System
Fund package maintenance!
usetrmnl.com/?ref=laravel-trmnl
Buy Me A Coffee
Requires
- php: ^8.2
- illuminate/contracts: ^10.0||^11.0||^12.0
- spatie/laravel-package-tools: ^1.18
Requires (Dev)
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^10.0.0||^9.0.0||^8.22.0
- pestphp/pest: ^3.0
- pestphp/pest-plugin-arch: ^3.0
- pestphp/pest-plugin-laravel: ^3.0
This package is auto-updated.
Last update: 2025-06-10 13:08:08 UTC
README
🎨 Blade Components on top of the TRMNL Design System (docs)
Support us
Blade Components
Blade Compontens can help you generate markup code. Alternatively, you can just use the native CSS classes from the TRMNL Design System.
Usage
Basic Layout
<x-trmnl::screen> <x-trmnl::view> <x-trmnl::layout> <!-- Your content here --> </x-trmnl::layout> <x-trmnl::title-bar/> </x-trmnl::view> </x-trmnl::screen>
Quote Example
<x-trmnl::screen> <x-trmnl::view> <x-trmnl::layout> <x-trmnl::markdown gapSize="large"> <x-trmnl::title>Motivational Quote</x-trmnl::title> <x-trmnl::content>“I love inside jokes. I hope to be a part of one someday.”</x-trmnl::content> <x-trmnl::label variant="underline">Michael Scott</x-trmnl::label> </x-trmnl::markdown> </x-trmnl::layout> <x-trmnl::title-bar/> </x-trmnl::view> </x-trmnl::screen>
Installation
You can install the package via composer:
composer require bnussbau/laravel-trmnl-blade
You can publish the config file with:
php artisan vendor:publish --tag="trmnl-blade-config"
This is the contents of the published config file:
return [ 'framework_version' => env('TRMNL_BLADE_FRAMEWORK_VERSION', '1.0.0'), ];
Optionally, you can publish the views using
php artisan vendor:publish --tag="trmnl-views"
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.