Toggle navigation
Bootsnipp
Bootstrap
For
CSS Frameworks
Bootstrap
Foundation
Semantic UI
Materialize
Pure
Bulma
References
CSS Reference
Tools
Community
Page Builder
Form Builder
Button Builder
Icon Search
Dan's Tools
Diff / Merge
Color Picker
Keyword Tool
Web Fonts
.htaccess Generator
Favicon Generator
Site Speed Test
Snippets
Featured
Tags
By Bootstrap Version
4.1.1
4.0.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.1
3.0.0
2.3.2
Register
Login
"Untitled"
Bootstrap 4.1.1 Snippet by
errorteam10
4.1.1
Preview
HTML
JS
View Full Screen
Fork
Fork this
1.2K
 
0 Fav
Post to Facebook
Tweet this
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.3.5/dist/alpine.min.js" defer></script> <button class="alert alert-danger" @click="getUsers">Alert</button> <div x-model="users()" x-init="getUsers" class="col-md-12 bg-info p-5 m-0 row"> dd <div x-for="user in list" class="col-md-3 card"> <!-- Card body --> <template class="card-body"> <div class="row align-items-center"> <div class="col-auto"> <!-- Avatar --> <a href="#" class="avatar avatar-xl rounded-circle"> <img alt="Image placeholder" src="../../assets/img/theme/team-2.jpg"> </a> </div> <div class="col ml--2"> <h4 class="mb-0"> <a href="#!" x-text="user.name"></a> </h4> <p class="text-sm text-muted mb-0" x-text="user.email">Working remoteley</p> </div> <div class="col-auto"> <button type="button" class="btn btn-sm btn-primary">Add</button> </div> </div> </template> </div> </div>
function users() { return { list: null, getUsers() { alert("hello"); } } }
Related:
See More
Template
Paper Dashboard Pro
Questions / Comments:
Post
Posting Guidelines
Formatting
- Now
×
Close
Donate
BTC: 12JxYMYi6Vt3mx3hcmP3B2oyFiCSF3FhYT
ETH: 0xCD715b2E3549c54A40e6ecAaFeB82138148a6c76