Skip to content
tanthammar edited this page Dec 17, 2020 · 1 revision

Sponsors only

Please 💗 sponsor this package 🔗 in order to get access to tabs. The documentation is available in the sponsor repository.

Tab is not a field it's a form layout.

The Tab component does not extend the BaseField. It is a blade layout that prepends your form with tab links and splits the form into sections, displayed in tab containers.

Tabs

$errors->any() are displayed below the tabs

Tabs

Tabs collapse to <select> on small screen

Tabs

Example

Tab::make('Foo')->fields([
    KeyVal::make('Bar')->fields([
        Input::make('Baz'),
    ]),
]),

Tab::make('Bio')->fields([
    Input::make('Profession')->colspan(6)->rules('required'),
    Input::make('Spouse')->colspan(6)->rules('required'),
    Input::make('Pet')->colspan(6)->rules('required'),
    Input::make('Children')->colspan(6)->rules('required'),
])->tallIcon('icons.add-outline'),
Clone this wiki locally