Skip to content

Commit b58a5e5

Browse files
committed
website: add back to up button.
1 parent 599e8a6 commit b58a5e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

www/src/App.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { useState } from 'react';
22
import GitHubCorners from '@uiw/react-github-corners';
33
import styled, { css } from 'styled-components';
4+
import BackToUp from '@uiw/react-back-to-top';
45
import { Example } from './example/default';
56
import MarkdownPreview from './Markdown';
67
import { ExampleEditor } from './example/editor';
@@ -66,6 +67,7 @@ export default function App() {
6667
{tabs === 'editor' && <ExampleEditor />}
6768
</ExampleWrapper>
6869
<MarkdownPreview />
70+
<BackToUp>Top</BackToUp>
6971
</Wrappper>
7072
);
7173
}

0 commit comments

Comments
 (0)