ShadcnUI.Components.Content.ScrollArea (shadcn_ui v1.0.0)

Copy Markdown View Source

A bounded native overflow container with explicit focus policy.

Scroll Area does not measure content, observe the viewport, restore position, virtualize children, load data, or add custom scroll controls. Applications own dimensions beyond the closed size presets and every scroll-driven policy.

Summary

Functions

Renders one native overflow container around required caller content.

Functions

scroll_area(assigns)

Renders one native overflow container around required caller content.

Attributes

  • axis (:atom) - Defaults to :vertical. Must be one of :vertical, :horizontal, or :both.
  • size (:atom) - Defaults to :default. Must be one of :small, :default, or :large.
  • edge_affordance (:atom) - Defaults to :none. Must be one of :none, :start, :end, or :both.
  • focusable (:boolean) - Defaults to false.
  • accessible_label (:string) - Defaults to nil.
  • labelledby (:string) - Defaults to nil.
  • class (:any) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • inner_block (required)