-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cbd3c84
commit e87d691
Showing
6 changed files
with
66 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
--- | ||
sidebar_position: 0 | ||
--- | ||
|
||
# Installation | ||
|
||
## CDN | ||
|
||
You can use the following lines in your `head` tag to load the latest version of Bloum from a CDN: | ||
|
||
```html | ||
<script src="https://unpkg.com/bloum" defer></script> | ||
|
||
<!-- include the default unstyled stylesheet --> | ||
<link href="https://unpkg.com/bloum/dist/style.min.css" rel="stylesheet"> | ||
<!-- include the modern theme --> | ||
<link href="https://unpkg.com/bloum/dist/modern.min.css" rel="stylesheet"> | ||
``` | ||
|
||
## Package manager | ||
|
||
|
||
import Tabs from '@theme/Tabs'; | ||
import TabItem from '@theme/TabItem'; | ||
|
||
<Tabs> | ||
<TabItem value="npm" label="NPM" default> | ||
```bash | ||
npm install bloum | ||
``` | ||
</TabItem> | ||
<TabItem value="yarn" label="Yarn"> | ||
```bash | ||
yarn add bloum | ||
``` | ||
</TabItem> | ||
<TabItem value="pnpm" label="PNPM"> | ||
```bash | ||
pnpm add bloum | ||
``` | ||
</TabItem> | ||
<TabItem value="bun" label="Bun"> | ||
```bash | ||
bun add bloum | ||
``` | ||
</TabItem> | ||
</Tabs> | ||
|
||
Once installed, you can import the library in your JavaScript project: | ||
|
||
```js | ||
import "bloum" | ||
import "bloum/dist/style.min.css" | ||
import "bloum/dist/modern.min.css" | ||
``` | ||
|
||
Then, you can use the components in your HTML: | ||
|
||
```html | ||
<bl-select name="my-select"> | ||
<div data-value="1">Option 1</div> | ||
<div data-value="2">Option 2</div> | ||
<div data-value="3">Option 3</div> | ||
</bl-select> | ||
``` |
File renamed without changes.
File renamed without changes.
File renamed without changes.