Skip to content

Commit 364c865

Browse files
committed
bump version
1 parent 3b8ad8f commit 364c865

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vibe-kit/onboard",
3-
"version": "0.0.5",
3+
"version": "0.0.6",
44
"main": "dist/index.cjs",
55
"module": "dist/index.js",
66
"types": "dist/index.d.ts",

src/VibeKitButton.tsx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,30 @@ export const VibeKitButton: React.FC<VibeKitButtonProps> = ({
4949
...style,
5050
};
5151

52+
// If children exist, render as a div wrapper instead of button
53+
if (children) {
54+
return (
55+
<>
56+
<div
57+
id="vibekit-button"
58+
data-vibekit-token={token}
59+
onClick={handleClick}
60+
className={className}
61+
style={style}
62+
>
63+
{children}
64+
</div>
65+
66+
<VibeKitModal
67+
isOpen={isModalOpen}
68+
onClose={handleCloseModal}
69+
url={url}
70+
title="VibeKit - Add to your app"
71+
/>
72+
</>
73+
);
74+
}
75+
5276
return (
5377
<>
5478
<button

0 commit comments

Comments
 (0)