We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c992dd commit 59a06cbCopy full SHA for 59a06cb
documentation-site/examples/button/basic.tsx
@@ -2,5 +2,11 @@ import * as React from "react";
2
import { Button } from "baseui/button";
3
4
export default function Example() {
5
- return <Button onClick={() => alert("thank you 🙂")}>Click me!</Button>;
+ const [clicked, setClicked] = React.useState(false);
6
+
7
+ return (
8
+ <Button onClick={() => setClicked(!clicked)}>
9
+ {clicked ? "Clicked!" : "Click me"}
10
+ </Button>
11
+ );
12
}
0 commit comments