import type { ReactNode } from "react"
import type { Meta, StoryObj } from "@storybook/react-vite"
import { ScrollArea, ScrollBar } from "@hm-design/ui"
import { StateBoard } from "@/components/story-board"
import { StoryPage, StoryPageHeader, StorySection } from "@/components/story-page"
// Scroll Area is Radix scrolling with a styled scrollbar (type "hover": the bar shows while hovering or scrolling). Sizes below
// are Story layout. The representative Story shows vertical, horizontal, both axes and a table-like content.
const items = Array.from({ length: 30 }, (_, i) => `항목 ${i + 1}`)
function Vertical() {
return (
{items.map((t) => (
{t}
))}
)
}
function Horizontal() {
return (
{Array.from({ length: 12 }, (_, i) => (
{`카드 ${i + 1}`}
))}
)
}
function Both() {
return (
{items.map((t) => (
{`${t} — 가로로도 길어지는 내용입니다. 가로 scroll로 끝까지 볼 수 있습니다.`}