How to use react-textarea-autosize - 2 common examples

To help you get started, we’ve selected a few react-textarea-autosize examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Sketch-sh / nit / src / vendor / Textarea.bs.js View on Github external
if (onChange) {
    tmp.onChange = Js_primitive.valFromOption(onChange);
  }
  if (onKeyDown) {
    tmp.onKeyDown = Js_primitive.valFromOption(onKeyDown);
  }
  if (autoFocus) {
    tmp.autoFocus = Js_primitive.valFromOption(autoFocus);
  }
  if (minRows) {
    tmp.minRows = Js_primitive.valFromOption(minRows);
  }
  if (maxRows) {
    tmp.maxRows = Js_primitive.valFromOption(maxRows);
  }
  return ReasonReact.wrapJsForReason(ReactTextareaAutosize.default, tmp, children);
}
github meetalva / alva / packages / components / src / property-item-string / index.tsx View on Github external
position: absolute;
	top: 15px;
	transform: translateY(-50%);
	right: 0;
	box-sizing: border-box;
	padding: 3px 6px 3px 0;
	width: 20px;
	cursor: pointer;
	transition: stroke 0.3s ease-in-out;
	stroke: ${Color.Grey60};
	&:hover {
		stroke: ${Color.Grey20};
	}
`;

const StyledTextArea = styled(TextareaAutosize.default)`
	resize: none;
	${PropertyInputStyles};
`;

export const PropertyItemString: React.StatelessComponent = props => (
	
		
	
);

react-textarea-autosize

textarea component for React which grows with content

MIT
Latest version published 24 days ago

Package Health Score

91 / 100
Full package analysis

Popular react-textarea-autosize functions