(feat) update base components

This commit is contained in:
cardosofede
2024-07-16 18:27:45 +03:00
parent ae8142c89b
commit f163c58d7f
4 changed files with 33 additions and 21 deletions

View File

@@ -1,11 +1,11 @@
from uuid import uuid4
from abc import ABC, abstractmethod
from streamlit_elements import dashboard, mui
from contextlib import contextmanager
from uuid import uuid4
from streamlit_elements import dashboard, mui
class Dashboard:
DRAGGABLE_CLASS = "draggable"
def __init__(self):
@@ -36,15 +36,15 @@ class Dashboard:
@contextmanager
def title_bar(self, padding="5px 15px 5px 15px", dark_switcher=True):
with mui.Stack(
className=self._draggable_class,
alignItems="center",
direction="row",
spacing=1,
sx={
"padding": padding,
"borderBottom": 1,
"borderColor": "divider",
},
className=self._draggable_class,
alignItems="center",
direction="row",
spacing=1,
sx={
"padding": padding,
"borderBottom": 1,
"borderColor": "divider",
},
):
yield