1
Fork 0
tildes-reextended/source/options/components/back-to-top.tsx

15 lines
432 B
TypeScript
Raw Permalink Normal View History

2023-06-23 10:52:03 +00:00
import {type JSX} from "preact";
import {Setting, type SettingProps} from "./index.js";
2023-06-23 10:52:03 +00:00
export function BackToTopSetting(props: SettingProps): JSX.Element {
return (
<Setting {...props}>
<p class="info">
Adds a hovering button to the bottom-right of all pages once you've
scrolled down far enough that, when clicked, will scroll you back to the
top of the page.
</p>
2023-06-23 10:52:03 +00:00
</Setting>
);
}