summaryrefslogtreecommitdiff
path: root/library/src/layout/container.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-12-20 16:08:16 +0100
committerLaurenz <laurmaedje@gmail.com>2022-12-20 16:11:37 +0100
commitf5f7df7247ae29800e0290774a50942e2485beea (patch)
tree57253ba51efdae3ac8e4eea722428924625b514c /library/src/layout/container.rs
parentb8ffd3ad3dcaebddbc674e03494e0d818b21fa51 (diff)
Documentation
Diffstat (limited to 'library/src/layout/container.rs')
-rw-r--r--library/src/layout/container.rs14
1 files changed, 8 insertions, 6 deletions
diff --git a/library/src/layout/container.rs b/library/src/layout/container.rs
index 5df6b2dc..933deeba 100644
--- a/library/src/layout/container.rs
+++ b/library/src/layout/container.rs
@@ -2,9 +2,10 @@ use super::VNode;
use crate::layout::Spacing;
use crate::prelude::*;
+/// # Box
/// An inline-level container that sizes content.
///
-/// # Parameters
+/// ## Parameters
/// - body: Content (positional)
/// The contents of the box.
///
@@ -14,8 +15,8 @@ use crate::prelude::*;
/// - height: Rel<Length> (named)
/// The height of the box.
///
-/// # Tags
-/// - layout
+/// ## Category
+/// layout
#[func]
#[capable(Layout, Inline)]
#[derive(Debug, Hash)]
@@ -75,9 +76,10 @@ impl Layout for BoxNode {
impl Inline for BoxNode {}
+/// # Block
/// A block-level container that places content into a separate flow.
///
-/// # Parameters
+/// ## Parameters
/// - body: Content (positional)
/// The contents of the block.
///
@@ -92,8 +94,8 @@ impl Inline for BoxNode {}
/// The spacing between this block and the following one. Takes precedence
/// over `spacing`.
///
-/// # Tags
-/// - layout
+/// ## Category
+/// layout
#[func]
#[capable(Layout)]
#[derive(Debug, Hash)]