Module Bonsai_experimental_snips.Scroll_config

type t
type gutter := [
  1. | `Unstable
  2. | `Stable
  3. | `Stable_both_edges
]

The gutter argument allows you to reserve space for a scrollbar to appear, even if there isn't enough content to display a scrollbar in an overflow: auto container. You can use this to prevent layout shifts when your content grows large enough to show the scrollbar. See https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-gutter for more info.

val no_scrolling : t
val only_on_primary : ?gutter:gutter -> unit -> t
val for_both : ?gutter:gutter -> unit -> t