summaryrefslogtreecommitdiff
path: root/library/src/layout/container.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/src/layout/container.rs')
-rw-r--r--library/src/layout/container.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/library/src/layout/container.rs b/library/src/layout/container.rs
index 49ce0372..a77c0df9 100644
--- a/library/src/layout/container.rs
+++ b/library/src/layout/container.rs
@@ -41,6 +41,13 @@ use crate::prelude::*;
/// - height: `Rel<Length>` (named)
/// The height of the box.
///
+/// - baseline: `Rel<Length>` (named)
+/// An amount to shift the box's baseline by.
+///
+/// ```example
+/// Image: #box(baseline: 40%, image("tiger.jpg", width: 2cm)).
+/// ```
+///
/// ## Category
/// layout
#[func]