Skip to content

Commit

Permalink
multiline text input, closes Chainlit#507
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinwmerritt committed Apr 27, 2024
1 parent 5102fae commit f586f2b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/chainlit/input_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ class TextInput(InputWidget):
type: InputWidgetType = "textinput"
initial: Optional[str] = None
placeholder: Optional[str] = None
multiline: bool = False

def to_dict(self) -> Dict[str, Any]:
return {
Expand All @@ -137,6 +138,7 @@ def to_dict(self) -> Dict[str, Any]:
"placeholder": self.placeholder,
"tooltip": self.tooltip,
"description": self.description,
"multiline": self.multiline,
}


Expand Down

0 comments on commit f586f2b

Please sign in to comment.