snapshot of https://github.com/excalidraw/excalidraw.git (master, 2026-09-16; blobs > 131072B omitted)
Some checks failed
Tests / test (push) Failing after 15s
Some checks failed
Tests / test (push) Failing after 15s
This commit is contained in:
15
packages/excalidraw/components/LinkButton.tsx
Normal file
15
packages/excalidraw/components/LinkButton.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { FilledButton } from "./FilledButton";
|
||||
|
||||
export const LinkButton = ({
|
||||
children,
|
||||
href,
|
||||
}: {
|
||||
href: string;
|
||||
children: React.ReactNode;
|
||||
}) => {
|
||||
return (
|
||||
<a href={href} target="_blank" rel="noopener" className="link-button">
|
||||
<FilledButton>{children}</FilledButton>
|
||||
</a>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user