multiline TextField - floating label

Moshe

When using TextField in multiLine mode, the floating label does is not located on the left. It does not seems to appear on the documentation example, but when applying the code given there, this is what happens:

  <TextField
  hintText="Message Field"
  floatingLabelText="MultiLine and FloatingLabel"
  multiLine={true}
  rows={2}
/>

this does not happen then not using the multiLine mode.

CaseyC

You can fix this easily by using the style property of the <TextField/> component like this.

<TextField
  style={{textAlign: 'left'}}
  hintText="Message Field"
  floatingLabelText="MultiLine and FloatingLabel"
  multiline
  rows={2}
/>

Hope this helps. If that doesn't work than it's likely that you have another style rule interfering with your <TextField/>.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

Multiline label in UIStackView

From Dev

Multiline Label On UIButton Swift

From Dev

CCLabelTTF multiline label not working

From Dev

Floating label on top inputs

From Dev

TextInputLayout floating label gravity

From Dev

Autosizing textfield label in ExtJS

From Dev

Replace a selected Label with a TextField

From Dev

showing floating numbers in TextField in javafx

From Dev

Dynamically adding multiline label in a view

From Dev

How to make multiline label with Eureka

From Dev

QML Label max width & multiline

From Dev

Dynamically adding multiline label in a view

From Dev

change label colors on floating labels

From Java

How do I create a multiline TextField in SwiftUI?

From Dev

Display multiline error in Materials-UI TextField

From Java

How to superscript a label in Vuetify textfield

From Dev

Multiply label with numbers with textfield with numbers

From Dev

Bootstrap textfield button add on with label

From Dev

Copiable Label/TextField/LabeledText in JavaFX

From Dev

Copiable Label/TextField/LabeledText in JavaFX

From Dev

Hiding a Textfield and its Label in Javascript

From Dev

update Label with Textfield inside UICollectionViewCell

From Dev

Codenameone:Unable to set floating hint to textfield

From Dev

Custom cell to display multiline label using UITableViewAutomaticDimension

From Dev

Get frame of word in a substring in a multiline label

From Dev

How To Make A Multiline Data Label In A Bar Chart?

From Dev

Android - reduce EditText floating label padding/margin?

From Java

How to change the floating label color of TextInputLayout

From Dev

Angular floating input label to use typeahead

Related Related

HotTag

Archive