add example
diff --git a/man/scroll_box.Rd b/man/scroll_box.Rd
index a431fd0..440dcc5 100644
--- a/man/scroll_box.Rd
+++ b/man/scroll_box.Rd
@@ -22,3 +22,16 @@
This function will put a HTML kable object in a fixed-height,
fixed-width or both box and make it scrollable.
}
+\examples{
+\dontrun{
+# Specify table size by pixels
+kable(cbind(mtcars, mtcars), "html") \%>\%
+ kable_styling() \%>\%
+ scroll_box(width = "500px", height = "200px")
+
+# Specify by percent
+kable(cbind(mtcars, mtcars), "html") \%>\%
+ kable_styling() \%>\%
+ scroll_box(width = "100\%", height = "200px")
+}
+}