1.7.0 • Published 17 hours ago
@superblocksteam/custom-components v1.7.0
@superblocksteam/custom-components
Provides utility functions to help develop custom components that can be used in Superblocks Applications.
Usage
import React from "react";
import { useSuperblocksContext } from "@superblocksteam/custom-components";
import { type Props, type EventTriggers } from "./types";
export default function Component({
count,
}: Props) {
const {
updateProperties,
events: {
onChange,
},
} = useSuperblocksContext<Props, EventTriggers>();
return (
<button
onClick={() => {
updateProperties({ count: count + 1 });
onChange();
}}
>Increment</button>
);
}
1.7.0
17 hours ago
1.6.0
3 days ago
1.5.2
7 days ago
1.5.1
2 months ago
1.5.0
2 months ago
1.4.2
5 months ago
1.4.1
6 months ago
1.3.1
6 months ago
1.3.0
6 months ago
1.2.1
6 months ago
1.2.0
6 months ago
1.1.2
7 months ago
1.1.1
7 months ago
1.1.0
7 months ago
1.0.2
8 months ago
1.0.0
8 months ago
0.0.23
9 months ago
0.0.22
9 months ago
0.0.21
9 months ago
0.0.20
9 months ago