You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Textual API allows you to [build custom re-usable widgets](https://textual.textualize.io/guide/widgets/#custom-widgets) and share them across projects.
760
758
Custom widgets can be themed, just like the builtin widget library.
761
759
762
760
Combine existing widgets to add new functionality, or use the powerful [Line API](https://textual.textualize.io/guide/widgets/#line-api) for unique creations.
763
761
764
762
"""
763
+
DEFAULT_CSS="""
764
+
YourWidgets { margin-bottom: 2; }
765
+
"""
765
766
766
767
defcompose(self) ->ComposeResult:
767
768
yieldMarkdown(self.YOUR_MD)
@@ -773,13 +774,11 @@ class WidgetsScreen(PageScreen):
0 commit comments