diff --git a/docs/components/popup.md b/docs/components/popup.md index e88c9685d..cc538b151 100644 --- a/docs/components/popup.md +++ b/docs/components/popup.md @@ -1197,7 +1197,7 @@ const App = () => { ### Auto-size -Use the `auto-size` attribute to tell the popup to resize when necessary to prevent it from getting clipped. You can use `autoSizeBoundary` and `auto-size-padding` to customize the behavior of this option. Auto-size works well with `flip`, but if you're using `auto-size-padding` make sure `flip-padding` is the same value. +Use the `auto-size` attribute to tell the popup to resize when necessary to prevent it from getting clipped. Possible values are `horizontal`, `vertical`, and `both`. You can use `autoSizeBoundary` and `auto-size-padding` to customize the behavior of this option. Auto-size works well with `flip`, but if you're using `auto-size-padding` make sure `flip-padding` is the same value. When using auto-size, two read-only custom properties called `--auto-size-available-width` and `--auto-size-available-height` will be applied to the host element. These values determine the available space the popover has before clipping will occur. Since they cascade, you can use them to set a max-width/height on your popup's content and easily control its overflow. @@ -1206,7 +1206,7 @@ Scroll the container to see the popup resize as its available space changes. ```html preview