Compare commits

...

3 Commits

Author SHA1 Message Date
Alek Petuskey
7fab05850d format 2024-10-09 16:06:12 -07:00
Alek Petuskey
bab0aaae5a Rework default ui for upload 2024-10-09 16:00:46 -07:00
Alek Petuskey
414278458f Rework default ui for upload 2024-10-09 16:00:15 -07:00
2 changed files with 4 additions and 3 deletions

BIN
assets/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

@ -8,6 +8,8 @@ from typing import Callable, ClassVar, Dict, List, Optional
from reflex.components.component import Component, ComponentNamespace, MemoizationLeaf
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.constants import Dirs
from reflex.event import (
@ -324,9 +326,8 @@ class StyledUpload(Upload):
The styled upload component.
"""
# Set default props.
props.setdefault("border", "1px dashed var(--accent-12)")
props.setdefault("padding", "5em")
props.setdefault("textAlign", "center")
if not children:
children = [button("Upload Files", icon("upload", size=12), align_items="center")]
# Mark the Upload component as used in the app.
Upload.is_used = True