-
-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Description
I thought the types are fixed on this PR vuejs/core#13831
previous issue: #17
component
import { defineVaporComponent, ref } from "vue";
import type { ButtonHTMLAttributes } from "vue-jsx-vapor";
interface ButtonProps extends ButtonHTMLAttributes<{}> {
variant?: "default" | "danger" | "light";
}
export const Button = defineVaporComponent<ButtonProps>({
name: "Button",
setup() {
const foo = ref("4453");
return { foo };
},
render(data, props) {
return <button>Value: {data.foo}</button>;
},
});NO AUTOCOMPLETE !!!

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels