Skip to content

Commit

Permalink
docs(ScrollView): refactor jsx examples to tsx (#2210)
Browse files Browse the repository at this point in the history
  • Loading branch information
langz authored and tujoworker committed May 31, 2023
1 parent 9c0f978 commit d21916c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,9 @@ export const ScrollViewInteractive = () => (
</ScrollView>
</ComponentBox>
)

export const ScrollViewInfo = () => (
<ComponentBox hidePreview hideToolbar>
<ScrollView>scrollable content</ScrollView>
</ComponentBox>
)
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@
showTabs: true
---

import { ScrollViewInfo } from 'Docs/uilib/components/fragments/scroll-view/Examples'

## Description

ScrollView is a tiny helper component helping the user controlling overflowing content horizontally or vertically.

It also is used in other floating components like [Dropdown](/uilib/components/dropdown) or [Drawer](/uilib/components/drawer).

```jsx
import { ScrollView } from '@dnb/eufemia/fragments'

render(<ScrollView> scrollable content </ScrollView>)
```
<ScrollViewInfo />

0 comments on commit d21916c

Please sign in to comment.