Skip to content

Commit

Permalink
chore: add back to top button to docs
Browse files Browse the repository at this point in the history
[skip-native]
  • Loading branch information
jordmccord committed Oct 31, 2024
1 parent d3d3fc1 commit 97e7c56
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const ScrollButton = () => {
? {
position: 'fixed',
width: '100%',
left: '80%',
right: 10,
bottom: 40,
height: 20,
zIndex: 1,
Expand Down
3 changes: 3 additions & 0 deletions apps/native-ui-storybook/docs/native-ui/guides/migration.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { Meta } from '@storybook/blocks';
import { BackToTopButton } from '../../components';

<BackToTopButton />

<Meta title="Native UI / Guides / Migrating from UW Native UI" />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import { Meta } from '@storybook/blocks';
import playground from './assets/playgrounds.mp4';
import darkMode from './assets/darkmode.mp4';
import deviceMode from './assets/devices.mp4';
import { BackToTopButton } from '../../components';

<BackToTopButton />

<Meta title="Native UI / Guides / Using Storybook" />

Expand Down
4 changes: 2 additions & 2 deletions apps/native-ui-storybook/docs/native-ui/introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import { Meta } from '@storybook/blocks';
import { version } from '../../../../packages/native-ui/package.json';
import img from './phone-light.png';
import imgDark from './phone-dark.png';
import { DynamicImage } from '../components';
import { DynamicImage, BackToTopButton } from '../components';
import { Box } from '@utilitywarehouse/native-ui/lab';

<Meta title="Native UI / Introduction" />

<BackToTopButton />
<Box alignItems='center'>
<DynamicImage
width={500}
Expand Down

0 comments on commit 97e7c56

Please sign in to comment.