Skip to content

Better documentation for custom implementations #36

@FredyRivera-dev

Description

@FredyRivera-dev

Hi, I love what you're doing with this, but I feel like I'm hitting a bottleneck. Trying to use it with the AI ​​SDK, but in a slightly different way than what you describe in your documentation, has become very difficult to implement correctly.

For example, in my back end, I implemented the catalog along with a tool. Besides returning the elements to be rendered, it also returns extra information for a custom iframe that renders everything.

And in the front end, I had to do this to be able to display everything correctly:

const UIContent = () => (
    <DataProvider initialData={{ form: {} }}>
      <VisibilityProvider>
        <ActionProvider handlers={actionHandlers}>
          <Renderer tree={ui.tree} registry={shadcnRegistry} />
        </ActionProvider>
      </VisibilityProvider>
    </DataProvider>
  );

Even so, I haven’t been able to obtain the results shown in the documentation. Any suggestions would be welcome, or a note about improvements to the documentation would be appreciated. :D

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions