Skip to main content
Give us your valuable feedback

It will help us understand how we can serve you better

Give feedback

Components

Textarea

Used to enter long text input which spans over multiple lines

banner-Textarea
Component Status Details

Status component contains a list of checks and completeness that has been tested and owned by each component

check-list-icon We don't use color as the only visual tool to convey information.
check-list-icon The component’s structure and properties include relevant options such as variant, style, size, orientation, optional iconography, decorations, selection, error state, etc.check-list-icon The title is the component name that uses the frame base component template.check-list-icon The base component name contains: .Base & "Component Name" if there is more than one.check-list-icon All component properties use the Legion foundation.
check-list-icon We can change all the parts that are connected to the component base.check-list-icon The inside of the base component remains connected to the master component.check-list-icon All variant options are not damaged when we change from one to another.check-list-icon Overriding changes to components will not reset other variants.
check-list-icon Component's already has component specs documentation.

Status

Resources

Upcoming
Legion Textarea Android Compose

Types and States

Legion has 2 type of Textarea

  1. Basic Text Area Inline
  2. Basic Text Area Outline

Legion also has 8 states of Textarea

  1. Normal State Inline
  2. Normal State Outline
  3. Error State Inline
  4. Error State Outline
  5. Success State Inline
  6. Succes State Outline
  7. Disable State Inline
  8. Disable State Outline

Usage

Textarea allow user input. The border should light up simply and clearly indicating which field the user is currently editing.

Inline

var value by remember { mutableStateOf("") }
LgnInlineTextArea(
value = value,
onValueChange = {
value = it
},
placeholder = "Description"
)

Outline

var value by remember { mutableStateOf("") }
LgnOutlineTextArea(
value = value,
onValueChange = {
value = it
},
placeholder = "Description"
)

States

Normal

Inline

var value by remember { mutableStateOf("") }
LgnFieldContainer(label = "Description") {
LgnInlineTextArea(
value = value,
onValueChange = {
value = it
},
placeholder = "Description"

Outline

var value by remember { mutableStateOf("") }
LgnFieldContainer(label = "Description") {
LgnOutlineTextArea(
value = value,
onValueChange = {
value = it
},
placeholder = "Description"

Error

Inline

var value by remember { mutableStateOf("") }
LgnFieldContainer(label = "Description", error = "Description Error") {
LgnInlineTextArea(
value = value,
onValueChange = {
value = it
},
placeholder = "Description",

Outline

var value by remember { mutableStateOf("") }
LgnFieldContainer(label = "Description", error = "Description Error") {
LgnOutlineTextArea(
value = value,
onValueChange = {
value = it
},
placeholder = "Description",

Success

Inline

var value by remember { mutableStateOf("") }
LgnFieldContainer(label = "Description", success = "Description Correct") {
LgnInlineTextArea(
value = value,
onValueChange = {
value = it
},
placeholder = "Description",

Outline

var value by remember { mutableStateOf("") }
LgnFieldContainer(label = "Description", success = "Description Correct") {
LgnOutlineTextArea(
value = value,
onValueChange = {
value = it
},
placeholder = "Description",

Disabled

Inline

var value by remember { mutableStateOf("") }
LgnInlineTextArea(
value = value,
onValueChange = {
value = it
},
placeholder = "Description",
enabled = false

Outline

var value by remember { mutableStateOf("") }
LgnOutlineTextArea(
value = value,
onValueChange = {
value = it
},
placeholder = "Description",
enabled = false

Attributes

ParametersTypeDescription
valueStringSet Text in Area
onValueChange(String) -> UnitSet Action When Text Change
colorsLgnTextFieldColorsSet Color of Text
textStyleTextStyleSet Text Style of Text
enabledBooleanSet Enable or Disable of Text Area
errorBooleanSet whether Text Area State Error or Not
successBooleanSet whether Text Area State Success or Not
shapeShapeSet Shape of Text Area
placeHolderStringSet Place Holder of Text Area
keyboardOptionsKeyboardOptionsSet Options Available on the Keyboard when They Appear on the Screen
keyboardActionsKeyboardOptionsWhat the Application Should Do after the User has Finished Entering Text
maxLinesIntSet Maximum Line of Text Area
minLinesIntSet Minimum Line of Text Area
visualTransformationVisualTransformationChanging Visual Output of the Text Area