import { Meta, Canvas, Props, Story } from "@storybook/blocks";
import {
  ComponentHeading,
  ComponentStatus,
  COMPONENT_STATUS,
} from "../../storybook-components";
import { Sticky } from "./Sticky";

<Meta title="Deprecated/Components/To delete/Sticky" component={Sticky} />

<ComponentHeading
  componentName="Sticky"
  description="A component for wrapping children in a sticky-positioned container"
  sourcePath="src/components/Sticky/Sticky.tsx"
  hideDemosLink
/>

<ComponentStatus status={COMPONENT_STATUS.DEPRECATED} />

This component has been deprecated. To provide sticky position to an element, use the `sticky` classname.

```jsx
import { Sticky } from "@conveyorhq/arrow-ds";
```

<Canvas>
  <Story name="Sticky">
    <Sticky>This is the Sticky component</Sticky>
  </Story>
</Canvas>

## Props

<Props of={Sticky} />
