{!isLoading &&
diff --git a/package.json b/package.json
index cee4988..cc1c828 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@risc0/ui",
- "version": "0.0.183",
+ "version": "0.0.185",
"private": false,
"sideEffects": false,
"type": "module",
@@ -43,7 +43,7 @@
"simplebar-react": "3.2.6",
"sonner": "1.5.0",
"string-ts": "2.2.0",
- "tailwind-merge": "2.5.2",
+ "tailwind-merge": "2.5.3",
"tailwindcss": "3.4.13",
"tailwindcss-animate": "1.0.7",
"typescript": "5.7.0-dev.20240925",
diff --git a/stories/button.stories.tsx b/stories/button.stories.tsx
index 13925a2..b341918 100644
--- a/stories/button.stories.tsx
+++ b/stories/button.stories.tsx
@@ -1,5 +1,6 @@
/* c8 ignore start */
-import { RocketIcon } from "lucide-react";
+import { Rocket, RocketIcon, RockingChair } from "lucide-react";
+import { useState } from "react";
import { Button } from "../button";
export function Default() {
@@ -31,14 +32,33 @@ export function Sizes() {
export function WithIcon() {
return (
- }>Start Icon
- }>End Icon
+ }>Start Icon
+ }>End Icon
);
}
export function Loading() {
- return ;
+ const [isLoading, setIsLoading] = useState(false);
+ const [isLoading2, setIsLoading2] = useState(false);
+ const [isLoading3, setIsLoading3] = useState(false);
+
+ return (
+
+
+ } isLoading={isLoading2} onClick={() => setIsLoading2(!isLoading2)}>
+ Loading (click me)
+
+ }
+ isLoading={isLoading3}
+ onClick={() => setIsLoading3(!isLoading3)}
+ />
+
+ );
}
export function Disabled() {