import { Meta, StoryObj } from "@storybook/react"; import { ScrollArea } from "."; import { Flex } from "../Flex"; import { getCssProps } from "@sb/cssprops"; import { RenderPropsArgTypes } from "@sb/helpers"; export default { title: "Layouts/ScrollArea", component: ScrollArea, parameters: { cssprops: getCssProps("ScrollArea"), }, argTypes: { ...RenderPropsArgTypes, }, } as Meta; type Story = StoryObj; export const Vertical: Story = { args: { children: [ , ], }, }; export const Horizontal: Story = { args: { children: [ , ], }, }; export const HorizontalAbove: Story = { args: { children: [ , ], }, }; function PrettyGradient(props: { height?: number | string; width?: number | string; }) { const { height, width } = props; return (
); }