PromucFlow_constructor/app/client/src/components/ads/TextInput.tsx
satbir121 3a4d900235
Button Component (#190)
* Adding blank components.

* Adding Todo note for tree

* Adding todo note for LighteningMenu

* ads button component

* Adding storybook support.

* storybook integrated with button component

* ads button component props completed

* button component icon and loading logic implemented

* button component completed

* Added a text knob.

* Adding default text for button.

* Merging theme and other fixes.

* Fixed info button.

* Better types.

* Adding background param to components.

* Re-using vsariant for callount.

* Added props for Text input.

* Adding text component.

* feedback changes added in button and icon component

* type any removed in button component

* function naming corrected

* Changing empty string to null

* Adding enum for DropdownDisplayType.

* Change Spinner path

* Fixing spinner issues.

Co-authored-by: Rohit Kumawat <rohit.kumawat@primathon.in>
2020-08-10 10:24:33 +05:30

16 lines
381 B
TypeScript

import { CommonComponentProps } from "./common";
type TextProps = CommonComponentProps & {
placeholder?: string;
value: string;
hasError: boolean;
disabled: boolean;
validator: (value: string) => { isValid: boolean; message: string };
onChange: (value: string) => void;
cypressSelector?: string;
};
export default function Text(props: TextProps) {
return null;
}