PHP code example of tombroucke / sage-bootstrap-components
1. Go to this page and download the library: Download tombroucke/sage-bootstrap-components 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/ */
tombroucke / sage-bootstrap-components example snippets
<x-collapse.accordion id="my-accordion">
<!-- Collapse.accordion.item -->
<x-collapse.accordion.item accordion-id="my-accordion" show>
<x-slot name="heading">
First item title
</x-slot>
First item content
</x-collapse.accordion.item>
<x-collapse.accordion.item accordion-id="my-accordion">
<x-slot name="heading">
Second item title
</x-slot>
Second item content
</x-collapse.accordion.item>
</x-collapse.accordion>
<x-alert theme="danger" dismissible>
A simple alert
</x-alert>
<x-badge theme="danger" pill>
A badge, displayed as a pill
</x-badge>
<x-breadcrumb>
<x-breadcrumb.item>
Home
</x-breadcrumb.item>
<x-breadcrumb.item href="https://tombroucke.be" active>
News
</x-breadcrumb.item>
</x-breadcrumb>
<x-list-group>
<!-- List-group.item -->
<x-list-group.item>
List item without link
</x-list-group.item>
<!-- List-group.link -->
<x-list-group.link href="https://tombroucke.be" target="_blank">
List item with link
</x-list-group.link>
</x-list-group>