PHP Classes

File: site/demos/tabs.php

Recommend this page to a friend!
  Packages of Boss Ibrahim Mussa   Caelrik   site/demos/tabs.php   Download  
File: site/demos/tabs.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Caelrik
Build Web user interface from PHP components
Author: By
Last change:
Date: 8 days ago
Size: 500 bytes
 

 

Contents

Class file image Download
<?php

use Caelrik\Ui\Components\Tabs;
use Caelrik\Ui\Support\Html;

// A string is escaped text; Html::raw() (or another component) is inserted as HTML.
$security = Html::raw('<p class="mb-0">Change your password, or turn on <strong>two-factor</strong> sign-in.</p>');

return Tabs::make('account')
    ->label('Account settings')
    ->tab('profile', 'Profile', 'Your name and e-mail.')
    ->tab('security', 'Security', $security)
    ->tab('billing', 'Billing', 'Invoices and payment methods.');