Skip to content

Commit

Permalink
Docs: Add custom classes section
Browse files Browse the repository at this point in the history
  • Loading branch information
Chng-Zhi-Xuan committed Jul 24, 2018
1 parent 56ea03c commit 6931b84
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 6931b84

Please sign in to comment.