GeneralTextFieldStyle

Entries

Link copied to clipboard

The Material filled field, the platform default.

Link copied to clipboard
Link copied to clipboard

A filled field without its indicator line, cut to the corners of the group it sits in. Use it for a block of fields that reads as one card, such as a form; position says where in the group this one is.

Link copied to clipboard

The pill-shaped Material search input, for a field that filters the content behind it as it is typed, such as a top app bar that swaps its title for a search box, say. It leads with a search icon unless another one is given, and takes its clear or filter actions in the trailing slot.

Link copied to clipboard

The search field as an outlined one: the Material outlined text field, fully rounded and leading with a search icon. Take it where a filled pill would disappear into the surface behind it (a search box on a page rather than in an app bar) or where the rest of the screen is outlined. Unlike Search it is an ordinary text field, so every parameter applies to it and the TextFieldValue overload accepts it.

Companion properties

Link copied to clipboard

Returns an immutable kotlin.enums.EnumEntries list containing the constants of this enum type, in the order they're declared.

Companion 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.

Properties

Link copied to clipboard
Link copied to clipboard