Main content ah kal rawh Docs navigation ah kal rawh
Check
in English

Internet atanga thil lachhawng

Bootstrap download la, compiled CSS leh JavaScript, source code te chu i hmu thei ang a, i duh ber package manager npm, RubyGems leh a dangte nen pawh dah tel bawk ang che.

CSS leh JS te a compile a

Bootstrap v5.2.1 atana hman theih tur compiled code download la , awlsam taka i project-a i luh theih nan, chutah chuan:

Hei hian documentation, source files, Popper ang chi JavaScript dependency optional engmah a huam lo.

Internet atanga thil lachhawng

Source files te chu

Kan source Sass, JavaScript, leh documentation file te download la, i asset pipeline hmangin Bootstrap hi compile rawh. He option hian tooling dang engemaw zat a mamawh a ni:

Should you require our full set of build tools , Bootstrap leh a docs siamna atan an dah tel a, mahse i thil tum atan chuan a tha lo mai thei.

Download source a ni

Entirna te

Kan entîrnate download leh enfiah i duh chuan , entîrna siam tawhte chu i la thei ang:

Download Entirna te

CDN chu jsDelivr hmangin a ni

Bootstrap-a compiled CSS leh JS cached version chu i project-ah rawn thawn turin jsDelivr hmangin download kha skip rawh .

<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-iYQeCzEYFbKjA/T2uDLTpkwGzCiq6soy8tYaI1GyVh/UjpbCx/TYkiZhlZB6+fzT" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-u1OknCvxWvY5kfmNBILK2hRnQC3Pr17a+RTT6rIHI7NnikvbZlHgTPOOmMi466C8" crossorigin="anonymous"></script>

Kan compiled JavaScript i hman a, Popper a hrana dah i duh chuan kan JS hmain Popper hi add la, CDN hmangin a tha zawk.

<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha384-oBqDVmMz9ATKxIep9tiCxS/Z9fNfEXiDAYTujMAeBAsjFuCZSmKbSSUnQlmh/jp3" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-7VPbUDkoPSGFnVtYi0QogXtr74QeVeeIs99Qfg5YCF+TidwNdjvaKZX19NZ/e6oz" crossorigin="anonymous"></script>

Package enkawltu te

Bootstrap source files te chu package manager lar tak tak thenkhat nen project eng pawhah pull in rawh. Package manager chu eng pawh ni se, Bootstrap hian kan official compiled version nena inmil setup atan Sass compiler leh Autoprefixer a mamawh dawn a ni.

npm a ni

I Node.js powered apps ah Bootstrap hi npm package hmangin install rawh :

npm install [email protected]

const bootstrap = require('bootstrap')emaw, Bootstrap-a plugin zawng zawng chu object import bootstrap from 'bootstrap'pakhatah a load vek ang . bootstrapModule ngei pawh hian bootstrapkan plugin zawng zawng a export vek a. Bootstrap-a plugins te chu pakhat zel manual-in i load thei a, chu /js/dist/*.jschu package-a top-level directory hnuaia file awmte chu load-in i load thei bawk.

Bootstrap’s package.jsonah hian a hnuaia key te hnuaiah hian metadata dang thenkhat a awm a:

  • sass- Bootstrap-a Sass source file lian ber kalna tur kawng
  • style- Bootstrap-a non-minified CSS default settings hmanga compile tawh kalna kawng (customization awm lo)
Kan starter project hmang hian npm hmangin Bootstrap hmangin tan la rawh! I npm project-a Bootstrap siam leh siam dan tur en turin twbs/bootstrap-npm-starter template repository ah kal rawh. Sass compiler, Autoprefixer, Stylelint, PurgeCSS, leh Bootstrap Icons te a awm bawk.

yarn a ni

I Node.js powered apps ah Bootstrap hi yarn package hmangin install rawh :

RubyGems a ni

Bundler ( recommended ) leh RubyGems hmangin i Ruby apps ah Bootstrap hi install la , i Gemfile: ah hian a hnuaia line hi dah la .

gem 'bootstrap', '~> 5.2.1'

A dang pawhin Bundler i hman loh chuan he command hi run la, gem chu i install thei bawk ang:

gem install bootstrap -v 5.2.1

A chipchiar zawkna chu gem-a README en rawh .

Hla phuahtu a ni

Bootstrap-a Sass leh JavaScript te pawh Composer hmangin install leh enkawl theih a ni bawk :

composer require twbs/bootstrap:5.2.1

NuGet a ni

.NET Framework ah i develop a nih chuan Bootstrap a CSS emaw Sass leh JavaScript te pawh NuGet hmangin i install thei a, i enkawl thei bawk . Project thar zawkte chuan libman emaw method dang emaw an hmang tur a ni a, NuGet hi frontend assets ni lovin compiled code atana siam a nih avangin.

Install-Package bootstrap
Install-Package bootstrap.sass