@props([ // the text to display on the tab 'label' => 'tab', // available options are true or false as strings. setting this to true will set this tab // as the active tab and will be highlighted 'active' => false, // defines if the tab is disabled. available options are true or false as strings not booleans 'disabled' => false, // unique way to identify this tab using css or javascript // this name is used for switching to a corresponding tab content // if url => 'default' 'name' => 'tab', // the default action of a tab is to switch to its corresponding tab content div // to enable switching; the tab content div needs to have the same name as the tab // the alternative action is to pass a url. clicking on the tab will open the url 'url' => 'default', // display optional icon prefix 'icon' => null, 'icon_css' => '', 'icon_type' => config('bladewind.tab.heading.icon_type', 'outline'), 'icon_dir' => config('bladewind.tab.heading.icon_dir', ''), ]) @aware(['color' => 'primary', 'style' => 'simple']) @php $name = preg_replace('/[\s]/', '-', $name); $active = parseBladewindVariable($active); $disabled = parseBladewindVariable($disabled); @endphp
  • @if(!empty($icon)) @endif {!! $label !!}