diff --git a/src/docs/overflow.mdx b/src/docs/overflow.mdx index a074a86c..e1bded1d 100644 --- a/src/docs/overflow.mdx +++ b/src/docs/overflow.mdx @@ -91,6 +91,38 @@ Use the `overflow-hidden` utility to clip any content within an element that ove +### Clipping content that overflows + +Use the `overflow-clip` utility to clip any content within an element that overflows the bounds of that element: + +
+ + + { +
+ +
+ Andrew Alfred + Technical advisor +
+
+ } +
+ +```html + +
+ +
+``` + +
+ +Unlike `overflow-hidden`, `overflow-clip` doesn't create a new formatting context and may offer better performance in some cases. + ### Scrolling if needed Use the `overflow-auto` utility to add scrollbars to an element in the event that its content overflows the bounds of that element: