Merge 7fab05850d
into 98f50811f9
This commit is contained in:
commit
de8536611b
BIN
assets/favicon.ico
Normal file
BIN
assets/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.2 KiB |
@ -13,6 +13,8 @@ from reflex.components.component import (
|
|||||||
StatefulComponent,
|
StatefulComponent,
|
||||||
)
|
)
|
||||||
from reflex.components.el.elements.forms import Input
|
from reflex.components.el.elements.forms import Input
|
||||||
|
from reflex.components.lucide import icon
|
||||||
|
from reflex.components.radix.themes.components.button import button
|
||||||
from reflex.components.radix.themes.layout.box import Box
|
from reflex.components.radix.themes.layout.box import Box
|
||||||
from reflex.config import environment
|
from reflex.config import environment
|
||||||
from reflex.constants import Dirs
|
from reflex.constants import Dirs
|
||||||
@ -385,9 +387,8 @@ class StyledUpload(Upload):
|
|||||||
The styled upload component.
|
The styled upload component.
|
||||||
"""
|
"""
|
||||||
# Set default props.
|
# Set default props.
|
||||||
props.setdefault("border", "1px dashed var(--accent-12)")
|
if not children:
|
||||||
props.setdefault("padding", "5em")
|
children = [button("Upload Files", icon("upload", size=12), align_items="center")]
|
||||||
props.setdefault("textAlign", "center")
|
|
||||||
|
|
||||||
# Mark the Upload component as used in the app.
|
# Mark the Upload component as used in the app.
|
||||||
Upload.is_used = True
|
Upload.is_used = True
|
||||||
|
Loading…
Reference in New Issue
Block a user