File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed
Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments