krzysztofzylka / bootstrap-generator
Bootstrap 5.3 generator
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/krzysztofzylka/bootstrap-generator
Requires
This package is auto-updated.
Last update: 2023-11-30 16:08:41 UTC
README
Install
composer install krzysztofzylka/bootstra-generator
Class
\krzysztofzylka\BootstrapGenerator\BootstrapGenerator
Methods
Alert
use \krzysztofzylka\BootstrapGenerator\BootstrapGenerator; use \krzysztofzylka\BootstrapGenerator\enum\ThemeColor; BootstrapGenerator::alert('alert!', ThemeColor::Primary) //not required additional methods ->header('header') //alert header ->headerTag('h4'); //custom header tag
Badge
use \krzysztofzylka\BootstrapGenerator\BootstrapGenerator; use \krzysztofzylka\BootstrapGenerator\enum\BackgroundColor; BootstrapGenerator::badge('badge!', BackgroundColor::Primary) //not required additional method ->roundedPill(); //rounded
Breadcrumb
use \krzysztofzylka\BootstrapGenerator\BootstrapGenerator; BootstrapGenerator::breadcrumb() ->addBreadcrumb('a', 'true', '#') ->...;
Button
use \krzysztofzylka\BootstrapGenerator\BootstrapGenerator; use \krzysztofzylka\BootstrapGenerator\enum\ThemeColor; use \krzysztofzylka\BootstrapGenerator\enum\Size; BootstrapGenerator::button('button!', ThemeColor::Primary) //not required additional method ->tag('div') ->size(Size::Sm) ->disable() ->badge('badge', ThemeColor::Secondary)