import React from "react";
import { Widget } from "./BaseWidget";
import type { TextInputProps as CoreTextInputProps } from "../widgets/text-input";

export interface TextInputProps extends CoreTextInputProps {
  className?: string;
}

export function TextInput({ className, ...props }: TextInputProps) {
  return <Widget widgetId="text-input" config={props} className={className} />;
}
