F
Filament7mo ago
Zoltar

Using Filament grid in blade view

Hello, is it possible to use a blade component in blade view for the filament grid system like section (<x-filament::section>)?
2 Replies
LeandroFerreira
LeandroFerreira7mo ago
I think you should use something like this:
<x-filament::grid
style="--cols-lg: repeat(3, minmax(0, 1fr));"
class="lg:grid-cols-[--cols-lg]"
>
<div>1</div>
<div>2</div>
<div>3</div>

</x-filament::grid>
<x-filament::grid
style="--cols-lg: repeat(3, minmax(0, 1fr));"
class="lg:grid-cols-[--cols-lg]"
>
<div>1</div>
<div>2</div>
<div>3</div>

</x-filament::grid>
--cols-lg: breakpoint (sm, md, lg...) repeat(3: 3 columns
Zoltar
ZoltarOP7mo ago
thnks its works
Want results from more Discord servers?
Add your server