antd/lib/input#TextAreaProps TypeScript Examples

The following examples show how to use antd/lib/input#TextAreaProps. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: registerInput.ts    From plasmic with MIT License 5 votes vote down vote up
export function registerInputTextArea(
  loader?: Registerable,
  customInputTextAreaMeta?: ComponentMeta<TextAreaProps>
) {
  const doRegisterComponent: typeof registerComponent = (...args) =>
    loader ? loader.registerComponent(...args) : registerComponent(...args);
  doRegisterComponent(TextArea, customInputTextAreaMeta ?? inputTextAreaMeta);
}
Example #2
Source File: registerInput.ts    From plasmic with MIT License 5 votes vote down vote up
inputTextAreaMeta: ComponentMeta<TextAreaProps> = {
  name: "AntdInputTextArea",
  displayName: "Antd Input Text Area",
  props: sortProps<TextAreaProps>({
    ...commonHtmlAttributes,
    allowClear: {
      type: "boolean",
      description: "If allow to remove input content with clear icon",
      defaultValueHint: false,
    },
    autoSize: {
      type: "object",
      description:
        "Height autosize feature, can be set to true | false or an object { minRows: 2, maxRows: 6 }",
    },
    disabled: {
      type: "boolean",
      description: "Whether the input is disabled",
      defaultValueHint: false,
    },
    bordered: {
      type: "boolean",
      description: "Whether has border style",
      defaultValueHint: true,
    },
    showCount: {
      type: "boolean",
      description: "Whether show text count",
      defaultValueHint: false,
    },
    id: {
      type: "string",
      description: "The ID for input",
    },
    maxLength: {
      type: "number",
      description: "The max length",
    },
    placeholder: {
      type: "string",
      description: "Placeholder for the input",
    },
    value: {
      type: "string",
      editOnly: true,
      uncontrolledProp: "defaultValue",
    },
  }),
  importPath: "antd/lib/input/TextArea",
  importName: "TextArea",
  isDefaultExport: true,
  parentComponentName: "AntdInput",
}