Skip to content

Commit a0a200e

Browse files
committed
feat(MaskedInput): add compact parameter to initialiser
docs(MaskedInput): add `compact` parameter to docstring
1 parent 41fe07e commit a0a200e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/textual/widgets/_masked_input.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@ def __init__(
461461
classes: str | None = None,
462462
disabled: bool = False,
463463
tooltip: RenderableType | None = None,
464+
compact: bool = False,
464465
) -> None:
465466
"""Initialise the `MaskedInput` widget.
466467
@@ -478,6 +479,7 @@ def __init__(
478479
classes: Optional initial classes for the widget.
479480
disabled: Whether the input is disabled or not.
480481
tooltip: Optional tooltip.
482+
compact: Enable compact style (without borders).
481483
"""
482484
self._template: _Template = None
483485
super().__init__(
@@ -490,6 +492,7 @@ def __init__(
490492
id=id,
491493
classes=classes,
492494
disabled=disabled,
495+
compact=compact,
493496
)
494497

495498
self._template = _Template(self, template)

0 commit comments

Comments
 (0)