zTextarea()
使用这种类型,你可以在你的 schema 中指定一个字符串,该字符串将在 Remotion Studio 中显示为多行文本区域。
🌐 Using this type you can specify in your schema a string that will be displayed in the Remotion Studio as a multiline text area.
使用 zTextarea() 时,值将是一个字符串,即使用户输入了多行内容。
🌐 When using zTextarea(), the value will be a string, even if the user enters several lines.
要在组件中显示值而不丢失换行,可以在显示该值的元素上使用 white-space: pre-line CSS 属性。
🌐 To display the value in a
component without losing the line breaks, you can use the white-space: pre-line CSS property on the element
displaying the value.
另请参阅
🌐 See also