Bar component

Basic usage

Display a large bar that take the full width of his container.

Image of the bar component

use Hiker\Components\Bar\Bar;

Bar::make();

Methods

Items

You may use the items method to display an array of components in the main area.

Bar::make()
    ->items([
        DisplayStatusfield::make('success','Available'),
        DisplayTextfield::make('Non mollit exercitation elit ad aute.')
    ]);

Item

The item method display a component one at the time in the main area.

Bar::make()
    ->item(DisplayStatusfield::make('success','Available'))
    ->item(DisplayTextfield::make('Non mollit exercitation elit ad aute.'));