src/Item.php
public function activeAttr(string $className = ''): string
    {
        if (! $className) {
            $className = config('menus.active_class_name');
        }

        return $this->isActive() ? 'class="' . $className . '"' : '';
    }
public function activeAttr(string $className = ''): string
    {
        if (! $className) {
            $className = config('menus.active_class_name');
        }

        return $this->isActive() ? 'class="' . $className . '"' : '';
    }
public function activeAttr ( string $ className = '' ) : string { if ( ! $ className ) { $ className = config ( 'menus.active_class_name' ) ; } return $ this -> isActive ( ) ? 'class="' . $ className . '"' : '' ; }
Output active class attribute.

e.g.: <li class="active">...</li>
Output active class attribute .