@datalayer/core
Version:
**Datalayer Core**
12 lines (11 loc) • 577 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
/*
* Copyright (c) 2023-2025 Datalayer, Inc.
* Distributed under the terms of the Modified BSD License.
*/
import { Button } from "@primer/react-brand";
import { MoveToTopIcon } from '@primer/octicons-react';
export const ToTopBranded = () => {
return (_jsx("div", { style: { position: 'fixed', bottom: '50px', left: '100px' }, children: _jsx(Button, { leadingVisual: _jsx(MoveToTopIcon, {}), hasArrow: false, size: "small", onClick: e => window.scrollTo(0, 0), children: "Go Top" }) }));
};
export default ToTopBranded;