protonemedia / laravel-splade

💫 The magic of Inertia.js with the simplicity of Blade 💫 - Splade provides a super easy way to build Single Page Applications (SPA) using standard Laravel Blade templates, and sparkle it to make it interactive. All without ever leaving Blade.
https://splade.dev
MIT License
1.47k stars 112 forks source link

[Feature] Boostrap 5 pre-made components #243

Closed stevebrainng closed 8 months ago

stevebrainng commented 1 year ago

Current:

In the current Splade version there are already tailwind css components available, which makes it quite easy to create tailwind css or integrate into existing tailwind web app.

Proposal

I would like to propose that there should be Boostrap 5 pre-made components in the component directory with a config options to switch between tailwind css and bootstrap 5 components.

  // config/splade.php
      /**
     * Settings for the Splade Blade components.
     *
     * @see https://splade.dev/docs/form-overview
     */
    'blade'                    => [
        'component_framework'         => 'bootstrap' // switch between TailwindCss and Bootstrap 5.
    ],

What are you thoughts on this? I am willing to work on a Pull Request if this is wanted.

stevebrainng commented 1 year ago

I'm looking to submit push request for this feature, Sometimes people already have a great UI in Bootstrap and they are not willing to migrate to tailwind css for some reasons, customizing the Tailwind components is going to be time consuming.

pascalbaljet commented 1 year ago

I get asked about Bootstrap a lot, and I think I'm in a Tailwind bubble, so I probably underestimate the number of Bootstrap users in the ecosystem. One of my other packages, a form components package, supports two Bootstrap versions and two Tailwind versions. It's a lot of work to maintain everything, and quite honestly, I haven't started new projects with Bootstrap in over five years. I would never use it myself, which makes me cautious about supporting it.

That said, I'll still consider it, as it would boost the adoption of Splade. There could be a way to create a separate Splade-Bootstrap package that only contains the modified Blade views. That way, I can move forward with the main repo.

aditya5660 commented 1 year ago

i have make the tabler.io version of splade

ehsanquddusi commented 1 year ago

I think it will be easier to provide the framework switch via config. The adapter based approach will make it loosely coupled with frontend CSS frameworks and can be extended by people to suit their usecases / custom templates.

In laravel perspective, a simple approach can be publishing views for override.

mariolucasdev commented 1 year ago

eu fiz a versão tabler.io do splade

I was looking for exactly that, could you make your version available?

dalpatsingh-jabsainfotech commented 1 year ago

any updates on bootstrap 5 support ?

pascalbaljet commented 8 months ago

No plans to include Bootstrap support anymore.