File size: 407 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import { Style } from "@makeswift/runtime/controls";
import { ReactRuntime } from "@makeswift/runtime/react";
// Register your components here!
function HelloWorld(props: { className?: string }) {
return <p {...props}>Hello, world!</p>;
}
ReactRuntime.registerComponent(HelloWorld, {
type: "hello-world",
label: "Hello, world!",
props: {
className: Style({ properties: Style.All }),
},
});
|