InputLabelMode

Whether a field-like component (the phone number field, a country selector) shows a visible label.

  • Floating: the label is drawn above the value, in the field's own outline, the way a Material text field does.

  • Hidden: no visible label at all — the value is vertically centered in the space the label would otherwise have reserved. This is a visual choice only: hiding the label never removes it from accessibility. A component with labelMode = Hidden must still expose the label text through contentDescription/stateDescription so a screen-reader user is never left with an unlabeled control — see the accessibilityLabel parameter on the components that accept this enum.

Entries

Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.