// // Copyright 2023 DXOS.org // import '@dxos-theme'; import React, { type PropsWithChildren } from 'react'; import { faker } from '@dxos/random'; import { activeSurface, surfaceShadow } from '@dxos/react-ui-theme'; import { ScrollArea } from './ScrollArea'; import { withTheme } from '../../testing'; faker.seed(1234); const DefaultStory = ({ children }: PropsWithChildren<{}>) => { return (

{children}

); }; export default { title: 'ui/react-ui-core/Scroll area', component: ScrollArea, render: DefaultStory, decorators: [withTheme], parameters: { chromatic: { disableSnapshot: false } }, }; export const Default = { args: { children: faker.lorem.paragraphs(5), }, };