Giter VIP home page Giter VIP logo

bricks's Introduction

Litstack Bricks 🧱

Pre-built Repeatables and Templates for common Webcontents.

Install

composer require litstack/bricks

php artisan lit-bricks:install

Usage

Add the desired Repeatables to your blocks:

use Litstack\Bricks\Repeatables\TextRepeatable;

$page->card(function ($form) {
    $form->block('content')
        ->title('My Content')
        ->repeatables(function ($repeatables) {
            $repeatables->add(TextRepeatable::class);
        });
});

Return a view, pass it the formdata:

return view('welcome')->with([
    'form' => Form::load('pages', 'home')
]);

Add the block to your template:

@block($form->content)

Customize Templates

You can publish the templates to resources/views/vendor/bricks/ and edit them to your needs:

php artisan vendor:publish --provider="Litstack\Bricks\BricksServiceProvider --tag=views"

Components

Repeatables

Name Fields  Usage
TextRepeatable::class WYSIWYG Simple Text-Repeatable
ImageRepeatable::class image Single Image-Repeatable using <x-lit-image /> Component
ImagesRepeatable::class image Multiple Image-Repeatable using <x-lit-image /> Component
ImageSlideRepeatable::class image, input, textarea Image-Repeatable using <x-lit-image /> Component, Input and Textarea

bricks's People

Contributors

jannescb avatar chrissle28 avatar aw-gerrit avatar trghnsn avatar

Watchers

 avatar  avatar

bricks's Issues

Body Scroll Lock for Bricks Modal

Is it possible to add a body scroll lock to the bricks modal?
Modal contents can be scrollable in some cases. The body scroll should be locked then.

Carousel arrows and dots bug

Clicking carousel arrows or dots has no effect on the carousel.
(Dragging the carousel leads to interaction on arrows and dots though.)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.