Add widgets to an infolist?

Is it possible to place widgets inside an infolist?
Solution
public function tabs(Infolist $infolist): Infolist
{
    return $infolist
        ->schema([
            Tabs::make()
                ->tabs([
                    Tab::make(__('Tab 1'))
                        ->schema([
                          ViewEntry::make("WidgetClass")
                            ->view("components.widget", [
                                "widget" =>
                                WidgetClass::class,
                                "properties" => []
                            ]),
                        ]),
                ]),
        ]);
}
Was this page helpful?