Skip to content

Commit

Permalink
add story
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitayutanov committed Jan 15, 2025
1 parent 8f693e0 commit 96c6466
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 19 deletions.
19 changes: 0 additions & 19 deletions utils/vara-ui/src/components/scroll-area/scroll-area.stories.ts

This file was deleted.

22 changes: 22 additions & 0 deletions utils/vara-ui/src/components/scroll-area/scroll-area.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { Meta, StoryObj } from '@storybook/react';

import { ScrollArea } from './scroll-area';

type Type = typeof ScrollArea;
type Story = StoryObj<Type>;

const LONG_TEXT =
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam nec purus nec nunc ultricies ultricies. Nullam nec purus nec nunc ultricies ultricies. Nullam nec purus nec nunc. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam nec purus nec nunc ultricies ultricies. Nullam nec purus nec nunc ultricies ultricies. Nullam nec purus nec nunc. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam nec purus nec nunc ultricies ultricies. Nullam nec purus nec nunc ultricies ultricies. Nullam nec purus nec nunc. Loremipsumdolorsitamet.';

const meta: Meta<Type> = {
title: 'ScrollArea',
component: () => <ScrollArea style={{ maxWidth: '512px', maxHeight: '128px' }}>{LONG_TEXT}</ScrollArea>,
args: {},
};

const Default: Story = {
args: {},
};

export default meta;
export { Default };

0 comments on commit 96c6466

Please sign in to comment.