diff --git a/docs/elements/courtyardoutline.mdx b/docs/elements/courtyardoutline.mdx index 5fa25117..dd70e758 100644 --- a/docs/elements/courtyardoutline.mdx +++ b/docs/elements/courtyardoutline.mdx @@ -75,3 +75,47 @@ export default () => ( ) `} /> + +## Anchored Courtyard Example + +When the same courtyard needs to be placed from a different reference point, +combine `boardAnchorPosition` with `anchorAlignment`. + + ( + + + + + + + + + } + /> + + +) +`} +/> diff --git a/docs/elements/courtyardrect.mdx b/docs/elements/courtyardrect.mdx index 87c800a3..465b0478 100644 --- a/docs/elements/courtyardrect.mdx +++ b/docs/elements/courtyardrect.mdx @@ -71,3 +71,42 @@ export default () => ( ) `} /> + +## Anchored Rectangle Example + +The rectangle can use the same anchor controls as the board itself. This is +useful when you want the courtyard to stay aligned to a specific corner. + + ( + + + + + + + } + /> + +) +`} +/>