mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: generic button export (#6092)
Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
parent
328ff6c32d
commit
699897f71b
10 changed files with 90 additions and 38 deletions
|
@ -1,5 +1,7 @@
|
|||
import { ExcalidrawImperativeAPI } from "../../../types";
|
||||
import { MIME_TYPES } from "../entry";
|
||||
import { Button } from "../../../components/Button";
|
||||
|
||||
const COMMENT_SVG = (
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
|
@ -23,6 +25,14 @@ const CustomFooter = ({
|
|||
}) => {
|
||||
return (
|
||||
<>
|
||||
<Button
|
||||
onSelect={() => alert("General Kenobi!")}
|
||||
className="you are a bold one"
|
||||
style={{ marginLeft: "1rem" }}
|
||||
title="Hello there!"
|
||||
>
|
||||
{COMMENT_SVG}
|
||||
</Button>
|
||||
<button
|
||||
className="custom-element"
|
||||
onClick={() => {
|
||||
|
|
|
@ -239,6 +239,7 @@ export {
|
|||
} from "../../utils";
|
||||
|
||||
export { Sidebar } from "../../components/Sidebar/Sidebar";
|
||||
export { Button } from "../../components/Button";
|
||||
export { Footer };
|
||||
export { MainMenu };
|
||||
export { useDevice } from "../../components/App";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue