Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 27, 2024
1 parent 039eec8 commit 6c10e88
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions solara/components/input_text_area.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import solara
from solara.alias import rv as v


@solara.component
def InputTextArea(
label: str,
Expand All @@ -14,18 +15,18 @@ def InputTextArea(
error: Union[bool, str] = False,
message: Optional[str] = None,
auto_grow: bool = True,
rows: int = 5
rows: int = 5,
):
r"""Free form text area input.
### Basic example:
```solara
import solara
text = solara.reactive("Hello\nWorld\n!!!")
continuous_update = solara.reactive(True)
@solara.component
def Page():
solara.Checkbox(label="Continuous update", value=continuous_update)
Expand All @@ -35,10 +36,10 @@ def Page():
solara.Button("Reset", on_click=lambda: text.set("Hello\nWorld\n!!!"))
solara.Markdown(f"**You entered**: {text.value}")
```
## Arguments
* `label`: Label to display next to the slider.
* `value`: The currently entered value.
* `on_value`: Callback to call when the value changes.
Expand All @@ -52,7 +53,7 @@ def Page():
* `message`: Message to show below the input. If `error` is a string, this will be ignored.
* `classes`: List of CSS classes to apply to the input.
* `style`: CSS style to apply to the input.
"""
"""
reactive_value = solara.use_reactive(value, on_value)
del value, on_value

Expand Down

0 comments on commit 6c10e88

Please sign in to comment.