Add parameter in workflow blocks (#1366)
This commit is contained in:
22
skyvern-frontend/src/components/WorkflowBlockInput.tsx
Normal file
22
skyvern-frontend/src/components/WorkflowBlockInput.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import { PlusIcon } from "@radix-ui/react-icons";
|
||||
import { cn } from "@/util/utils";
|
||||
import { Input } from "./ui/input";
|
||||
|
||||
type Props = React.ComponentProps<typeof Input> & {
|
||||
onIconClick: () => void;
|
||||
};
|
||||
|
||||
function WorkflowBlockInput(props: Props) {
|
||||
return (
|
||||
<div className="relative">
|
||||
<Input {...props} className={cn("pr-9", props.className)} />
|
||||
<div className="absolute right-0 top-0 flex size-9 cursor-pointer items-center justify-center">
|
||||
<div className="rounded p-1 hover:bg-muted" onClick={props.onIconClick}>
|
||||
<PlusIcon className="size-4" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export { WorkflowBlockInput };
|
||||
Reference in New Issue
Block a user