-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8f693e0
commit 96c6466
Showing
2 changed files
with
22 additions
and
19 deletions.
There are no files selected for viewing
19 changes: 0 additions & 19 deletions
19
utils/vara-ui/src/components/scroll-area/scroll-area.stories.ts
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
utils/vara-ui/src/components/scroll-area/scroll-area.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }; |