import type { Meta, StoryObj } from '@storybook/react-vite' import React from 'react' import { DocsTemplate } from '../../../.storybook' import ScrollingContainer from './ScrollingContainer' const meta: Meta = { title: 'Components/ScrollingContainer', component: ScrollingContainer, argTypes: { children: { control: false }, }, parameters: { docs: { page: () => ( The ScrollingContainer is a versatile wrapper designed for content that requires vertical scrolling. This component comes with a visually appealing gradient fade above and below the children content, enhancing the scrolling experience. The gradient effect can be optionally toggled on or off based on specific design preferences. } infoBullets={[ NOTE: This component is currently restricted to usage in the Library. It is not available to be used outside of the Library. This may change depending on the need of other applications. , ]} /> ), }, }, } export default meta type Story = StoryObj const Template: Story = { render: (args) => (
), } const children = (
{[...Array(20)].map((_, index) => (
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla aliquam, urna vitae aliquam mattis, neque ipsum bibendum turpis, id finibus lectus m auris eget nunc.
))}
) export const Basic: Story = { ...Template, args: { children, }, } export const WithoutGradients: Story = { ...Template, args: { children, hideGradients: true, }, } export const Height100: Story = { ...Template, args: { children, height: 100, }, }