Skip to content

Commit f51985c

Browse files
committed
docs: ✏️ update readme
1 parent 1e82e7a commit f51985c

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,30 @@
1212

1313
## Installation
1414

15+
### CDN
16+
17+
```html
18+
<link rel="stylesheet" href="/path/to/select2.css">
19+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@ttskch/select2-bootstrap4-theme/dist/select2-bootstrap4.css">
20+
```
21+
22+
### Manually
23+
1524
```bash
25+
# npm
1626
$ npm install @ttskch/select2-bootstrap4-theme
17-
```
1827

19-
## Usage
28+
# yarn
29+
$ yarn add @ttskch/select2-bootstrap4-theme
30+
```
2031

2132
```html
2233
<link rel="stylesheet" href="/path/to/select2.css">
2334
<link rel="stylesheet" href="/path/to/select2-bootstrap4.css">
2435
```
2536

37+
## Usage
38+
2639
```js
2740
$('select').select2({
2841
theme: 'bootstrap4',

0 commit comments

Comments
 (0)