import { createBlock } from '@rubriclab/blocks'
import { z } from 'zod'
export const blocks = {
paragraph: createBlock({
schema: {
input: z.object({text: z.string()})
},
render: async ({ text }) => (
<p>
{text}
</p>
)
})
}
More advanced blocks:
Consider carefully the integration with actions. Tables need to be rendered on the fly from complex return types. Forms need to be rendered on the fly from complex action inputs
More advanced blocks:
Consider carefully the integration with actions. Tables need to be rendered on the fly from complex return types. Forms need to be rendered on the fly from complex action inputs