Package Data | |
---|---|
Maintainer Username: | jhmilan |
Maintainer Contact: | jose@bittenbyte.io (Jose H. Milán) |
Package Create Date: | 2017-02-01 |
Package Last Update: | 2017-02-06 |
Language: | HTML |
License: | MIT |
Last Refreshed: | 2024-12-22 15:01:29 |
Package Statistics | |
---|---|
Total Downloads: | 100 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 4 |
Total Watchers: | 3 |
Total Forks: | 1 |
Total Open Issues: | 0 |
View components and Sublime Text snippets to integrate Bulma.io easier into your Laravel 5.4 (or more) projects.
Via Composer
$ composer require bittenbyte/laravel-bulma-components
Add the service provider to your config/app.php
BittenByte\LaravelBulmaComponents\LaravelBulmaComponentsServiceProvider::class,
optionally you can publish vendor assets and customize/modify those view components
php artisan vendor:publish --tag="views" --provider="BittenByte\LaravelBulmaComponents\LaravelBulmaComponentsServiceProvider"
If you want you want to use ST3 snippets we recommend you to symlink the snippets folder. To do that just:
# Clone this repo
cd ~/your-git-repos
git clone git@github.com:BittenByte/laravel-bulma-components.git
#cd to your sublime Packages/User folder, in our case (Mac Os X)
cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User/
ln -s ~/your-git-repos/snippets bulma-snippets
bl-section,tab
) {{-- Your blade stuff --}}
@component('bulma::layout.section', ['id' => 'my-id', 'class' => 'is-blue'])
my section content
@endcomponent
{{-- Your blade stuff --}}
bl-level,tab
) {{-- Your blade stuff --}}
@component('bulma::components.level', ['class' => 'is-mobile'])
{{-- Left/Right level starts here --}}
@slot('leftSide')
<div class="level-item">
something
</div>
@endslot
@slot('rightSide') @endslot
{{-- Left/Right level ends here --}}
{{-- Centered level starts here --}}
<div class="level-item has-text-centered">
something
</div>
{{-- Centered level ends here --}}
@endcomponent
{{-- Your blade stuff --}}
bl-media,tab
) {{-- Your blade stuff --}}
@component('bulma::components.media', ['id' => 'my-id', 'class' => 'is-blue'])
@slot('mediaLeft')
<figure>
<p class="image is-64x64">
<img src="http://bulma.io/images/placeholders/128x128.png">
</p>
</figure>
@endslot
your media content
@endcomponent
{{-- Your blade stuff --}}
bl-card,tab
) {{-- Your blade stuff --}}
@component('bulma::components.card', [
'id' => 'my-id',
'class' => 'is-blue',
'cardImage' => [
'src' => 'http://bulma.io/images/placeholders/1280x960.png',
'alt' => 'some alt attribute'
],
])
@slot('header') My header @endslot
my content
@slot('footer')
<a class="card-footer-item">Save</a>
<a class="card-footer-item">Edit</a>
<a class="card-footer-item">Delete</a>
@endslot
@endcomponent
{{-- Your blade stuff --}}
More blade sections to add and sublime snippet
Please see CHANGELOG for more information what has changed recently.
$ composer test
Please see CONTRIBUTING and CONDUCT for details.
If you discover any security related issues, please email support@bittenbyte.io instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.