From dccefaa3ea17945b57048e82aa84829ebf4887a2 Mon Sep 17 00:00:00 2001 From: brausjonas Date: Tue, 2 May 2023 15:50:46 +0200 Subject: [PATCH] Button Documentation --- anwendung/src/components/Button.jsx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/anwendung/src/components/Button.jsx b/anwendung/src/components/Button.jsx index f1ab134..9a05edb 100644 --- a/anwendung/src/components/Button.jsx +++ b/anwendung/src/components/Button.jsx @@ -1,19 +1,33 @@ import "../styles/App.css" +/** + * Function Takes in Paramter for: + * text: text to be shown on the button + * width, height: width and height of the button + * icon: an icon that should be shown on the button (HTML tag) (see Icons.js for example) + * iconWidth, iconHeight: width and height of the icon + * onClick: a function that should be run if the button is clicked + * Example for onClick: + *