From 6931b84fe30319137a1bb318d6f1ca872ad02a8c Mon Sep 17 00:00:00 2001 From: Chng-Zhi-Xuan Date: Tue, 24 Jul 2018 16:24:37 +0800 Subject: [PATCH] Docs: Add custom classes section --- docs/userGuide/components/advanced.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/docs/userGuide/components/advanced.md b/docs/userGuide/components/advanced.md index b271494c7f..d132f9491a 100644 --- a/docs/userGuide/components/advanced.md +++ b/docs/userGuide/components/advanced.md @@ -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. + + + Example
+ + Easily apply Bootstrap classes without using a wrapper! + +
+ + +Markup + +```html + + Easily apply Bootstrap classes without using a wrapper! + +``` + +