Skip to content

Commit

Permalink
Merge pull request #366 from Chng-Zhi-Xuan/363-custom-class-docs
Browse files Browse the repository at this point in the history
Add guide to use custom classes in components
  • Loading branch information
yamgent authored Jul 25, 2018
2 parents a6f49d4 + 6931b84 commit d75fd69
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions docs/userGuide/components/advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,26 @@ Slot name | Default class | Notes
--- | --- | ---
`modal-header` | `modal-title` |
`modal-footer` | `modal-footer` | Specifying `modal-footer` will override the `ok-text` attribute, and the OK button will not render.

## Insert custom classes into components

Every component documented in our user guide allows you to insert your own defined CSS classes.
This is done by adding the `add-class` attribute to a component along with the desired class names.

<tip-box border-left-color="#00B0F0">
<i style="font-style: normal; font-weight: bold; color: dimgray">Example</i><br>
<tip-box type="info" add-class="font-italic text-center text-warning">
Easily apply Bootstrap classes without using a wrapper!
</tip-box>
</tip-box>

<tip-box border-left-color="black">
<i style="font-style: normal; font-weight: bold; color: dimgray">Markup</i>

```html
<tip-box type="info" add-class="font-italic text-center text-warning">
Easily apply Bootstrap classes without using a wrapper!
</tip-box>
```
</tip-box>
<br>

0 comments on commit d75fd69

Please sign in to comment.