import { For, Show } from "solid-js" import { ScrollView, type ScrollViewProps } from "./scroll-view" type Args = Required> & { rows: number; rtl: boolean } function Preview(props: Args) { return (
Build history
{/* Start at the new inline edge when the inspector switches direction. */} {(direction) => (
    i + 1)}> {(build) => (
  1. Build {build} Release checks Passed
  2. )}
)}

Focus the list to scroll with the keyboard, or drag a thumb.

) } export default { title: "UI/ScrollView", id: "ui-scroll-view", component: Preview, args: { orientation: "vertical", thumbVisibility: "hover", rows: 20, rtl: false } satisfies Args, argTypes: { orientation: { control: "select", options: ["vertical", "horizontal", "both"] }, thumbVisibility: { control: "select", options: ["hover", "scroll"] }, rows: { control: { type: "range", min: 1, max: 60, step: 1 } }, }, } export const Vertical = {} export const Horizontal = { args: { orientation: "horizontal", rows: 12 } } export const BothAxes = { args: { orientation: "both" } } export const Fits = { args: { rows: 3 } } export const ScrollOnly = { args: { thumbVisibility: "scroll" } } export const RightToLeft = { args: { orientation: "both", rtl: true } }