Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
ptoffy committed Apr 22, 2023
1 parent 9688dea commit 37ddb65
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This package wraps Bootstrap elements into convenient Leaf-Tags.
Add `Bootstrap` to the package dependencies (in your `Package.swift` file):

```swift
.package(url: "https://github.com/nodes-vapor/bootstrap.git", from: "5.0.0")
.package(url: "https://github.com/nodes-vapor/bootstrap.git", from: "1.0.0-beta")
```

as well as to your target:
Expand All @@ -36,7 +36,7 @@ import Leaf

In order to render the Bootstrap elements, you will need to add the Bootstrap Leaf tags:

```swift
```swift
app.leaf.useBootstrapTags()
```

Expand All @@ -45,11 +45,10 @@ app.leaf.useBootstrapTags()
- [Alert](#alert)
- [Badge](#badge)
- [Button](#button)
- [Button Group](#button-group)
- [Button Toolbar](#button-toolbar)
- [Input](#input)
- [Breadcrumb](#breadcrumb)
- [Textarea](#textarea)
- [Checkbox](#checkbox)
- [File Input](#file-input)

### Alert

Expand Down Expand Up @@ -88,3 +87,16 @@ app.leaf.useBootstrapTags()
some textarea text
#endbsTextArea
```

### Checkbox

```
#bsCheckbox(classExtras?, attributes?)
```

### File Input

```
#bsFileInput(classExtras?, attributes?)
```

0 comments on commit 37ddb65

Please sign in to comment.