How to override views components in filament

I'm wanting to override a filament component that is in the Filament Vendor. Does anyone indicate any material, or have you done, could you give a help? The component is in the following directory, I want to edit, I tried several things but I couldn't

@props([
    'navigation',
])
<!-- override this file
//vendor/filament/filament/resources/views/components/page/sub-navigation/sidebar.blade.php
-->
<ul
    wire:ignore
    {{ $attributes->class(['hidden w-72 flex-col gap-y-7 md:flex']) }}
>
    @foreach ($navigation as $navigationGroup)
        <x-filament-panels::sidebar.group
            :collapsible="$navigationGroup->isCollapsible()"
            :icon="$navigationGroup->getIcon()"
            :items="$navigationGroup->getItems()"
            :label="$navigationGroup->getLabel()"
            :sidebar-collapsible="false"
        />
    @endforeach
</ul>



This component is called on this page

//vendor/filament/filament/resources/views/components/page/index.blade.php

...
  <x-filament-panels::page.sub-navigation.sidebar
             :navigation="$subNavigation"
   />
...
Was this page helpful?