PHP code example of one23 / laravel-bootstrap-5

1. Go to this page and download the library: Download one23/laravel-bootstrap-5 library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

one23 / laravel-bootstrap-5 example snippets


/**
 * $size: [null],sm,lg 
 * $color: [primary],secondary,success,danger,warning,info,light,dark,link
 * $type: [null],button,submit,reset
 * $active: only if $toggle=true
 */

<x-bootstrap::button
    :color="{string=primary}"
    :outline="{bool=false}"
    :type="{?string}"
    :href="{?string}"
    :size="{?string}"
    :value="{string}"
    :disabled="{bool=false}"
    :toggle="{bool=false}"
    :active="{bool=false}"
    :nowrap="{bool=false}"
/>

<x-bootstrap::button
    :color="{string=primary}"
    :outline="{bool=false}"
    :type="{?string}"
    :href="{?string}"
    :size="{?string}"
    :disabled="{bool=false}"
    :toggle="{bool=false}"
    :active="{bool=false}"
    :nowrap="{bool=false}"
>
    // content
</x-bootstrap::button>

<x-bootstrap::close
    :dismiss="{?string}"
/>

/**
 * $color: [null],primary,secondary,success,danger,warning,info,light,dark
 * $category: [null],solid,regular,brands
 */

<x-bootstrap::icon
    :name="{string}"
    :color="{?string}"
    :category={?string}
/>

// -> <i class="fa fa-${name}"></i>

<x-bootstrap::root>
    // content
</x-bootstrap::root>

// -> <div>${slot}</div>