Download the PHP package php-templates/bootstrap5 without Composer
On this page you can find all versions of the php package php-templates/bootstrap5. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download php-templates/bootstrap5
More information about php-templates/bootstrap5
Files in php-templates/bootstrap5
Download php-templates/bootstrap5
More information about php-templates/bootstrap5
Files in php-templates/bootstrap5
Vendor php-templates
Package bootstrap5
Short Description Php Templates bootstrap5 components
License MIT
Homepage https://github.com/php-templates/bootstrap5
Package bootstrap5
Short Description Php Templates bootstrap5 components
License MIT
Homepage https://github.com/php-templates/bootstrap5
Please rate this library. Is it a good library?
Informations about the package bootstrap5
Php Templates - Bootstrap5 components
Instalation & Setup
composer require php-templates/bootstrap5
or- download project and include
Bootstrap.php
file.
Accordion
props
:items
- an associative array holding accordion-item::id => accordion-item::titleclass
- extra classes to.accordion
toggle
- if true/no-value, prevent multiple items to be opened at same timeopen
- true/no-value to render an accordion that’s expandedslots
- add each accordion body under a slot with name coresponding to accordion-item::id
will result:
Alert
props
type
- bs5 theme colors (primary, secondary, etc)title
- alert h4 title (optional)dismiss
- display dismiss buttonicon
- hide alert icon if falseslots
default
- alert messagetitle
- title override, if a complex one is neededicon
- slot for icon
will result:
Badge
props
v
- bs theme colorsclass
- extra classesslots
default
- text value of the badge
will result:
Breadcrumb
props
:items
- an array holding items of form['label'=>'Displayed', 'value'=>'href']
class
- extra classes
will result:
Button
props
v
- variant - primary, secondary, etcclass
- extra classeshref
- if given, it will render an anchor instead of buttonsize
- sm, lg (btn-*)disabled
- true/no value = disabled
will result:
Card
props
header
- card header textfooter
- card footer textimg
- card image srcalt
- card image altclass
- custom img classslots
default
- .card-body contentheader
- .card-header contentabove
- above .card-bodybelow
- below .card-bodyfooter
- .card-footer content
will result:
Dropdown
props
type
- dropdown(default), dropup, dropstart, dropendv
- primary, secondary, etcsize
- sm, md, lg, etcid
- button idlabel
- button textul_class
- list class:items
- an array of items where item like ['type' => 'title,text,separator or item', 'text' => 'item text', 'href' => $optional, 'disabled' => $optional, 'active' => $optional, '_attrs' => $optionalItemBinds]slots
default
- the dropdown content if custom content requiredbtn-inner
- button childnode
will result:
Modal
props
title
- modal titlefade
- if false, no fade effect appliedsize
- sm, md, lg, etcid
- modal idclass
- modal classesc
- if should close on esc keypressscrollable
- if modal is scrollablecentered
- if modal should be vertically centeredslots
default
- modal bodyheader
- .modal-header childNodesfooter
- .modal-footer childNodes
will result:
Nav
props
:items
- an array holding items of form['label'=>'Displayed', 'value'=>'href', 'disabled'=>$optional, 'active'=>$optional]
class
- extra classes
will result:
Tabs
props
:items
- associative array holding $tab_id => $labelvalue
- selected tab by idvertical
- if you want tabs to be verticalclass
- extra .nav-tabs classesid
- .nav-tabs idfade
- if false, no fade effectslots
- one slot for each $tab_id may be passed
will result:
Offcanvas
props
pos
- .offcanvas position, default topclass
- .offcanvas extra classesid
- .offcanvas idscroll
- body scroll allowed or notbackdrop
- .offcanvas backdropslots
- default - offcanvas body child nodes
will result:
Form group
Create form-group structures in a single line using b-form-group
tag. You can create input groups, prepends, appends, inline forms and column forms of any type.
props
type
- text, textarea, checkbox, select, switch, etc...class
- form-group extra classsize
- form-control sizeoptions
- when type = select, an array of [label=>text,value=>value] structuresprepend
- prepend textappend
- append text- p-bind is present on form-control to pass forward any extra attribute
slots
- prepend - prepend custom, if more then a text is needed
- append - append custom, if more then a text needed
All versions of bootstrap5 with dependencies
PHP Build Version
Package Version
Requires
php-templates/php-templates Version
^1.0
The package php-templates/bootstrap5 contains the following files
Loading the files please wait ....