Function defineUIComponent
- defineUIComponent<Params>(component): FunctionComponent<UIComponentProps<Params>>
Type Parameters
Params extends TObject<TProperties>
Parameters
component: FunctionComponent<UIComponentProps<Params>>
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} />
</>
);
});
Used to define UI component for Action or Trigger.