feat: kickstart ui

This commit is contained in:
Shivam Mishra
2025-05-07 19:17:37 +05:30
parent f8afc1509f
commit db50f42054
+28 -3
View File
@@ -1,3 +1,28 @@
export function greet() {
return 'Hello';
}
import { h, createCustomElement } from 'vue';
const ChatButton = {
name: 'ChatButton',
props: {
label: {
type: String,
default: 'Click me',
},
},
render() {
return h(
'button',
{
class: 'cha-button',
onClick: this.handleClick,
},
this.label
);
},
methods: {
handleClick() {
// console.log('Button clicked');
},
},
};
export const buttonElement = createCustomElement(ChatButton);