Function defineUIComponent

  • Used to define UI component for Action or Trigger.

    Type Parameters

    • Params extends TObject<TProperties>

    Parameters

    Returns FunctionComponent<UIComponentProps<Params>>

    Example

    import { defineUIComponent, RichTextEditor } from "@rollout/framework/ui";
    import { inputParamsSchema } from "./input";

    export const UI = defineUIComponent<typeof inputParamsSchema>((props) => {
    return (
    <>
    <RichTextEditor bind={b.name} />
    </>
    );
    });