laravel-form-components icon indicating copy to clipboard operation
laravel-form-components copied to clipboard

Feature: Changing framework or multiple frameworks

Open wenfei-huang opened this issue 3 years ago • 2 comments

My site uses tailwind and bootstrap. Is it possible to use multiple frameworks?

For example on bootstrap4_index.blade.php I declare to use framework bootstrap 4 and on tailwind_index.blade.php I declare to use tailwind framework. Or using prefixes with a framework, where you can set a prefix bound to a framework? For example and

wenfei-huang avatar Jan 06 '22 14:01 wenfei-huang

I believe tailwind and bootstrap conflict on CSS styles, I would advise against loading them both.

mrl22 avatar Apr 05 '22 16:04 mrl22

I've got Bootstrap on the back end, but Tailwind on the front end - is there a way to specify on a per-form basis which framework to use?

For example:

@template('tailwind');

@endtemplate

Or perhaps a @config blade directive?

Workaround

I'm not mixing and matching templates, but using different ones on different overall layouts - so as a workaround I'm able to set the framework config in my controllers as-required.

config(['form-components.framework' => 'tailwind']);

I would second what @mrl22 says - having Tailwind and Bootstrap on the same page is probably not the path to happiness!

Patabugen avatar Aug 11 '22 13:08 Patabugen