Dɔwɔnu si ŋu ŋusẽ le, si woate ŋu akeke ɖe enu, eye wòyɔ fũ kple nusiwo le ŋgɔgbe. Tu eye nàtrɔ asi le eŋu kple Sass, zã grid ɖoɖo kple akpa siwo wotu do ŋgɔ, eye nàhe dɔwo ava agbe me kple JavaScript ƒe kpeɖeŋutɔ sẽŋuwo.
Ne ɖeko wòhiã be nàde Bootstrap ƒe CSS alo JS si woƒo ƒu la eme la, àte ŋu azã jsDelivr . Kpɔe le dɔwɔwɔ me kple míaƒe gɔmedzedze kabakaba bɔbɔe , alo ʋu kpɔɖeŋuawo be nàdze wò dɔ si gbɔna gɔme. Àte ŋu atiae hã be yeade Popper kple míaƒe JS ɖe vovo .
<!-- CSS only --><linkhref="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"rel="stylesheet"integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT"crossorigin="anonymous">
<!-- JavaScript Bundle with Popper --><scriptsrc="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"integrity="sha384-u1OknCvxWvY5kfmNBILK2hRnQC3Pr17a+RTT6rIHI7NnikvbZlHgTPOOmMi466C8"crossorigin="anonymous"></script>
// Variable overrides first
$primary:#900;$enable-shadows:true;$prefix:"mo-";// Then import Bootstrap
@import"../node_modules/bootstrap/scss/bootstrap";
Tu eye nàkekee ɖe enu le ɣeyiɣi ŋutɔŋutɔ me kple CSS tɔtrɔwo
Bootstrap 5 le tɔtrɔm kple dodo ɖesiaɖe be wòazã CSS ƒe tɔtrɔwo nyuie wu na xexeame katã ƒe tanya ƒe atsyãwo, akpa ɖekaɖekawo, kple dɔwɔnuwo gɔ̃ hã. Míenaa tɔtrɔ gbogbo aɖewo na amadedewo, ŋɔŋlɔdzesiwo ƒe atsyãwo, kple bubuwo le :rootɖoɖo aɖe nu be woazã le afi sia afi. Le akpawo kple dɔwɔnuwo dzi la, woɖoa CSS tɔtrɔwo ɖe hatsotso si sɔ gbɔ eye woateŋu atrɔ asi le wo ŋu bɔbɔe.
Trɔ asi le xexeame katã, akpa, alo dɔwɔnu ƒe hatsotso ƒe tɔtrɔwo ŋu be nàtrɔ asi le Bootstrap ŋu alesi tututu nèdi. Mehiã be woagbugbɔ aɖe gbeƒã se ɖesiaɖe o, ɖeko asixɔxɔ yeye si trɔna.
Yeye le Bootstrap 5 me, míaƒe dɔwɔnuwo nye esiwo míaƒe Dɔwɔnu API wɔ fifia . Míetue abe Sass ƒe anyigbatata si me nu geɖe le si woate ŋu atrɔ asi le kabakaba eye wòanɔ bɔbɔe ene. Menɔ bɔbɔe nenema gbegbe kpɔ be woatsɔ dɔwɔnu ƒe hatsotso aɖeke akpe ɖe eŋu, aɖee ɖa, alo atrɔ asi le eŋu o. Na utilities nawɔ dɔ nyuie, tsɔ pseudo-class variants kpee, eye nàna ŋkɔ tɔxɛwo wo.
// Create and extend utilities with the Utility API
@import"bootstrap/scss/bootstrap";$utilities:map-merge($utilities,("cursor":(property:cursor,class:cursor,responsive:true,values:autopointergrab,)));
JavaScript ƒe kpeɖeŋutɔ sẽŋu siwo me jQuery mele o
Tsɔ nu ɣaɣla siwo woate ŋu atrɔ, modals kple offcanvas menus, popovers kple dɔwɔnu ƒe aɖaŋuɖoɖowo, kple bubu geɖewo kpee bɔbɔe—wo katã jQuery manɔmee. JavaScript le Bootstrap me nye HTML-gbãtɔ, si fia be plugins tsɔtsɔ kpe ɖe eŋu le bɔbɔe abe datanɔnɔmewo tsɔtsɔ kpee ene. Èhiã dziɖuɖu geɖe wua? De plugin ɖekaɖekawo eme le ɖoɖowɔɖi nu.
Nukatae nàŋlɔ JavaScript geɖe wu evɔ àte ŋu aŋlɔ HTML? Bootstrap ƒe JavaScript ƒe kpeɖeŋutɔawo katã kloe nye nyatakaka API si le ɖoƒe gbãtɔ, si wɔnɛ be nàte ŋu azã JavaScript to datanɔnɔmewo tsɔtsɔ kpee ko me.
Trɔ asi le eŋu wòasɔ na wò ŋutɔ kple Bootstrap Icons
Bootstrap Icons nye SVG dzesiwo ƒe agbalẽdzraɖoƒe si le ʋuʋu ɖi si me nuŋɔŋlɔ siwo wu 1,500 le, eye wotsɔa bubuwo kpena ɖe eŋu le eƒe tata ɖesiaɖe me. Wotrɔ asi le wo ŋu be woawɔ dɔ le dɔ ɖesiaɖe me, eɖanye Bootstrap ŋutɔe nèzã alo mèzãe o. Zã wo abe SVG alo dzesi ŋɔŋlɔdzesiwo ene—tiatia eveawo siaa naa vector scaling kple asitɔtrɔ bɔbɔe to CSS dzi.