Scroll Area

Augments native scroll functionality for custom, cross-browser styling.

Tags

v1.2.0-beta.0
v1.2.0-beta.1
v1.2.0-beta.2
v1.2.0-beta.3
v1.2.0-beta.4
v1.2.0-beta.5
v1.2.0-beta.6
v1.2.0-beta.7
v1.2.0-beta.8
v1.2.0-beta.9
v1.2.0-beta.10
v1.2.0-beta.11
v1.2.0-beta.12

Horizontal Scrolling

Photo by Ornella Binni
Photo by Ornella Binni
Photo by Tom Byrom
Photo by Tom Byrom
Photo by Vladimir Malyavko
Photo by Vladimir Malyavko

Anatomy

Import all parts and piece them together.

use leptos::prelude::*;
use singlestage::scroll_area::*;

#[component]
pub fn ScrollAreaAnatomy() -> impl IntoView {
    view! { <ScrollArea /> }
}

API Reference

ScrollArea

Contains the contents of a scroll area.

Custom Attributes
NameTypeDefaultDescription
orientationString"vertical"

Sets the scrolling direction. Can be "horizontal" or "vertical".

Implements global attributes.